summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNathan Adams <dinnerbone@dinnerbone.com>2012-02-01 01:53:38 +0000
committerNathan Adams <dinnerbone@dinnerbone.com>2012-02-01 01:53:56 +0000
commit088762d67eac7eb772f694c9ad23845e809d9ce8 (patch)
treebf61498bc0f7d095ab428c73eaf3784cee59e94f /src
parentd4395cacd77ae253006ada16a5930affd126b99f (diff)
downloadbukkit-088762d67eac7eb772f694c9ad23845e809d9ce8.tar
bukkit-088762d67eac7eb772f694c9ad23845e809d9ce8.tar.gz
bukkit-088762d67eac7eb772f694c9ad23845e809d9ce8.tar.lz
bukkit-088762d67eac7eb772f694c9ad23845e809d9ce8.tar.xz
bukkit-088762d67eac7eb772f694c9ad23845e809d9ce8.zip
onEnable and onDisable are no longer required implementations for JavaPlugins
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/plugin/java/JavaPlugin.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/src/main/java/org/bukkit/plugin/java/JavaPlugin.java
index ba128fd9..c74c1531 100644
--- a/src/main/java/org/bukkit/plugin/java/JavaPlugin.java
+++ b/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!");