Stupid Question

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

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

    tschagg

  2. Offline

    jayfella

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

    Code:java
    1. public class PluginZomgName extends JavaPlugin


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

    Lau950

    "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:

    Code:
    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

    tschagg

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

Share This Page