Start the Plugin interfaces

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
Bukkit/Spigot
2010-12-24 01:29:59 +00:00
parent 94c43fd0fa
commit 1df4f74b79
2 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package org.bukkit.plugin;
/**
* Represents a plugin
*/
public abstract class Plugin {
private boolean isEnabled = false;
/**
* Returns a value indicating whether or not this plugin is currently enabled
*
* @return true if this plugin is enabled, otherwise false
*/
public final boolean isEnabled() {
return isEnabled;
}
/**
* Called when this plugin is enabled
*/
protected abstract void onEnable();
/**
* Called when this plugin is disabled
*/
protected abstract void onDisable();
/**
* Called when this plugin is first initialized
*/
protected abstract void onInitialize();
}