From a63739277b45a6029632cbdf863764b3ff377d1b Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 26 Apr 2013 16:49:23 +1000 Subject: [PATCH] Remove depreceated register methods. --- .../md_5/bungee/api/plugin/PluginManager.java | 20 ------------------- .../main/java/net/md_5/bungee/BungeeCord.java | 19 +++++++++--------- 2 files changed, 10 insertions(+), 29 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java index 82b152b0f..5d74ddfc2 100644 --- a/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java +++ b/api/src/main/java/net/md_5/bungee/api/plugin/PluginManager.java @@ -40,16 +40,6 @@ public class PluginManager private final Map plugins = new HashMap<>(); private final Map commandMap = new HashMap<>(); - /** - * @deprecated use - * {@link #registerCommand(net.md_5.bungee.api.plugin.Plugin, net.md_5.bungee.api.plugin.Command)} - */ - @Deprecated - public void registerCommand(Command command) - { - registerCommand( null, command ); - } - /** * Register a command so that it may be executed. * @@ -314,16 +304,6 @@ public class PluginManager return event; } - /** - * @deprecated see - * {@link #registerListener(net.md_5.bungee.api.plugin.Plugin, net.md_5.bungee.api.plugin.Listener)} - */ - @Deprecated - public void registerListener(Listener listener) - { - registerListener( null, listener ); - } - /** * Register a {@link Listener} for receiving called events. Methods in this * Object which wish to receive events must be annotated with the diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index 1599d9bef..0a5589e3f 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -121,15 +121,16 @@ public class BungeeCord extends ProxyServer { - getPluginManager().registerCommand( new CommandReload() ); - getPluginManager().registerCommand( new CommandEnd() ); - getPluginManager().registerCommand( new CommandList() ); - getPluginManager().registerCommand( new CommandServer() ); - getPluginManager().registerCommand( new CommandIP() ); - getPluginManager().registerCommand( new CommandAlert() ); - getPluginManager().registerCommand( new CommandBungee() ); - getPluginManager().registerCommand( new CommandPerms() ); - getPluginManager().registerCommand( new CommandSend() ); + // TODO: Proper fallback when we interface the manager + getPluginManager().registerCommand( null, new CommandReload() ); + getPluginManager().registerCommand( null, new CommandEnd() ); + getPluginManager().registerCommand( null, new CommandList() ); + getPluginManager().registerCommand( null, new CommandServer() ); + getPluginManager().registerCommand( null, new CommandIP() ); + getPluginManager().registerCommand( null, new CommandAlert() ); + getPluginManager().registerCommand( null, new CommandBungee() ); + getPluginManager().registerCommand( null, new CommandPerms() ); + getPluginManager().registerCommand( null, new CommandSend() ); registerChannel( "BungeeCord" ); }