From e423860f9f72c8f871bc653179efa02fc16a812b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 1 Feb 2012 01:53:38 +0000 Subject: [PATCH] onEnable and onDisable are no longer required implementations for JavaPlugins By: Nathan Adams --- .../src/main/java/org/bukkit/plugin/java/JavaPlugin.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java index ba128fd9ac..c74c1531fe 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java @@ -20,7 +20,6 @@ import org.bukkit.command.CommandSender; import org.bukkit.command.PluginCommand; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.YamlConfiguration; -import org.bukkit.event.Event; import org.bukkit.generator.ChunkGenerator; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.PluginDescriptionFile; @@ -333,7 +332,11 @@ public abstract class JavaPlugin implements Plugin { } } - public void onLoad() {} // Empty! + public void onLoad() {} + + public void onDisable() {} + + public void onEnable() {} public ChunkGenerator getDefaultWorldGenerator(String worldName, String id) { getServer().getLogger().severe("Plugin " + getDescription().getFullName() + " does not contain any generators that may be used in the default world!");