We weren't supposed to break things *that* hard. Plugins still need to update but here's a TEMPORARY fix.
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
package org.bukkit.event.server;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.AuthorNagException;
|
||||
|
||||
/**
|
||||
* Handles all miscellaneous server events
|
||||
@@ -13,6 +14,8 @@ public class ServerListener implements Listener {
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPluginEnable(PluginEnableEvent event) {
|
||||
onPluginEnable((PluginEvent)event);
|
||||
throw new AuthorNagException("onPluginEnable has been replaced with a new signature, (PluginEnableEvent)");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,6 +24,8 @@ public class ServerListener implements Listener {
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onPluginDisable(PluginDisableEvent event) {
|
||||
onPluginDisable((PluginEvent)event);
|
||||
throw new AuthorNagException("onPluginDisable has been replaced with a new signature, (PluginDisableEvent)");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -31,7 +36,7 @@ public class ServerListener implements Listener {
|
||||
public void onServerCommand(ServerCommandEvent event) {
|
||||
}
|
||||
|
||||
// Prevent compilation of old signatures TODO: Remove after 1.4
|
||||
@Deprecated public final void onPluginDisable(PluginEvent event) {}
|
||||
@Deprecated public final void onPluginEnable(PluginEvent event) {}
|
||||
// TODO: Remove after RB
|
||||
@Deprecated public void onPluginDisable(PluginEvent event) {}
|
||||
@Deprecated public void onPluginEnable(PluginEvent event) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user