hey everyone. i looked at http://wiki.bukkit.org/Scheduler_Programming for a help. there is always a MyPlugin variable like "MyPlugin.getServer()" now i want to ask: How i define MyPlugin?
"MyPlugin" is the name of the base class that extends JavaPlugin Code:java public class PluginZomgName extends JavaPlugin In this example, the "MyPlugin" would be referred to as "PluginZomgName".
"MyPlugin" Is just the tutorial names plugin, you dont need to define it, as jayfella said just rename it as your plugin name.
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