Some more backwards incompatible changes (minor though), also a ton of small cleanup.

onPluginEnable(PluginEvent event)   -> onPluginEnable(PluginEnableEvent event)
onPluginDisable(PluginEvent event)  -> onPluginDisable(PluginDisableEvent event)
onVehicleUpdate(VehicleEvent event) -> onVehicleUpdate(VehicleUpdateEvent event)
onWorldSave(WorldEvent event)       -> onWorldSave(WorldSaveEvent event)
onWorldLoad(WorldEvent event)       -> onWorldLoad(WorldLoadEvent event)

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot
2011-03-26 22:21:20 +01:00
parent f7b70eb07b
commit 020da84ad2
60 changed files with 312 additions and 376 deletions

View File

@@ -0,0 +1,9 @@
package org.bukkit.event.server;
import org.bukkit.plugin.Plugin;
public class PluginDisableEvent extends PluginEvent {
public PluginDisableEvent(Plugin plugin) {
super(Type.PLUGIN_DISABLE, plugin);
}
}

View File

@@ -0,0 +1,9 @@
package org.bukkit.event.server;
import org.bukkit.plugin.Plugin;
public class PluginEnableEvent extends PluginEvent {
public PluginEnableEvent(Plugin plugin) {
super(Type.PLUGIN_ENABLE, plugin);
}
}

View File

@@ -7,7 +7,7 @@ import org.bukkit.event.Event;
* Server Command events
*/
public class ServerCommandEvent extends Event {
public ServerCommandEvent(final Type type) {
super(type);
public ServerCommandEvent() {
super(Type.SERVER_COMMAND);
}
}

View File

@@ -12,7 +12,7 @@ public class ServerListener implements Listener {
*
* @param event Relevant event details
*/
public void onPluginEnable(PluginEvent event) {
public void onPluginEnable(PluginEnableEvent event) {
}
/**
@@ -20,7 +20,7 @@ public class ServerListener implements Listener {
*
* @param event Relevant event details
*/
public void onPluginDisable(PluginEvent event) {
public void onPluginDisable(PluginDisableEvent event) {
}
/**