Remove depreceated register methods.
This commit is contained in:
parent
112d543c2a
commit
a63739277b
@ -40,16 +40,6 @@ public class PluginManager
|
|||||||
private final Map<String, Plugin> plugins = new HashMap<>();
|
private final Map<String, Plugin> plugins = new HashMap<>();
|
||||||
private final Map<String, Command> commandMap = new HashMap<>();
|
private final Map<String, Command> 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.
|
* Register a command so that it may be executed.
|
||||||
*
|
*
|
||||||
@ -314,16 +304,6 @@ public class PluginManager
|
|||||||
return event;
|
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
|
* Register a {@link Listener} for receiving called events. Methods in this
|
||||||
* Object which wish to receive events must be annotated with the
|
* Object which wish to receive events must be annotated with the
|
||||||
|
@ -121,15 +121,16 @@ public class BungeeCord extends ProxyServer
|
|||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
getPluginManager().registerCommand( new CommandReload() );
|
// TODO: Proper fallback when we interface the manager
|
||||||
getPluginManager().registerCommand( new CommandEnd() );
|
getPluginManager().registerCommand( null, new CommandReload() );
|
||||||
getPluginManager().registerCommand( new CommandList() );
|
getPluginManager().registerCommand( null, new CommandEnd() );
|
||||||
getPluginManager().registerCommand( new CommandServer() );
|
getPluginManager().registerCommand( null, new CommandList() );
|
||||||
getPluginManager().registerCommand( new CommandIP() );
|
getPluginManager().registerCommand( null, new CommandServer() );
|
||||||
getPluginManager().registerCommand( new CommandAlert() );
|
getPluginManager().registerCommand( null, new CommandIP() );
|
||||||
getPluginManager().registerCommand( new CommandBungee() );
|
getPluginManager().registerCommand( null, new CommandAlert() );
|
||||||
getPluginManager().registerCommand( new CommandPerms() );
|
getPluginManager().registerCommand( null, new CommandBungee() );
|
||||||
getPluginManager().registerCommand( new CommandSend() );
|
getPluginManager().registerCommand( null, new CommandPerms() );
|
||||||
|
getPluginManager().registerCommand( null, new CommandSend() );
|
||||||
|
|
||||||
registerChannel( "BungeeCord" );
|
registerChannel( "BungeeCord" );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user