Removing 14 deprecated methods per http://bit.ly/mO2f4d
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package org.bukkit.event.server;
|
||||
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.AuthorNagException;
|
||||
|
||||
/**
|
||||
* Handles all miscellaneous server events
|
||||
@@ -13,20 +12,14 @@ 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)");
|
||||
}
|
||||
public void onPluginEnable(PluginEnableEvent event) {}
|
||||
|
||||
/**
|
||||
* Called when a plugin is disabled
|
||||
*
|
||||
* @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)");
|
||||
}
|
||||
public void onPluginDisable(PluginDisableEvent event) {}
|
||||
|
||||
/**
|
||||
* Called when a server command is used
|
||||
@@ -34,8 +27,4 @@ public class ServerListener implements Listener {
|
||||
* @param event Relevant event details
|
||||
*/
|
||||
public void onServerCommand(ServerCommandEvent event) {}
|
||||
|
||||
// TODO: Remove after RB
|
||||
@Deprecated public void onPluginDisable(PluginEvent event) {}
|
||||
@Deprecated public void onPluginEnable(PluginEvent event) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user