Stupid Question

Discussion in 'Plugin Development' started by tschagg, Jan 12, 2013.

Thread Status:
Not open for further replies.
  1. Offline


  2. Offline


    "MyPlugin" is the name of the base class that extends JavaPlugin

    1. public class PluginZomgName extends JavaPlugin

    In this example, the "MyPlugin" would be referred to as "PluginZomgName".
  3. Offline


    "MyPlugin" Is just the tutorial names plugin, you dont need to define it, as jayfella said just rename it as your plugin name.
  4. Offline

    lDucks Retired Staff

    I always start my plugins like this:

    static MainClassName plugin;
    public void onEnable(){
        plugin = this;
        // rest of onEnable
    And when I want to call it I do MainClassName.plugin
    tschagg likes this.
  5. Offline


    thank you so much! - Solved -
Thread Status:
Not open for further replies.

Share This Page