diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/fillr/Fillr.java | 3 | ||||
-rw-r--r-- | src/main/java/org/bukkit/plugin/Plugin.java | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/fillr/Fillr.java b/src/main/java/org/bukkit/fillr/Fillr.java index 0fd40de5..55d6ee09 100644 --- a/src/main/java/org/bukkit/fillr/Fillr.java +++ b/src/main/java/org/bukkit/fillr/Fillr.java @@ -15,6 +15,9 @@ public class Fillr extends JavaPlugin { public void onEnable() { } + public void onLoad() { + } + @Override public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (commandLabel.equalsIgnoreCase("check")) { diff --git a/src/main/java/org/bukkit/plugin/Plugin.java b/src/main/java/org/bukkit/plugin/Plugin.java index 380404da..82359691 100644 --- a/src/main/java/org/bukkit/plugin/Plugin.java +++ b/src/main/java/org/bukkit/plugin/Plugin.java @@ -59,6 +59,12 @@ public interface Plugin extends CommandExecutor { public void onDisable(); /** + * Called after a plugin is loaded but before it has been enabled. + * When mulitple plugins are loaded, the onLoad() for all plugins is called before any onEnable() is called. + */ + public void onLoad(); + + /** * Called when this plugin is enabled */ public void onEnable(); |