mirror of
https://github.com/plexusorg/Plex.git
synced 2026-06-03 21:16:55 +00:00
API
This commit is contained in:
@@ -21,8 +21,8 @@ final class DefaultCommandApi implements CommandApi
|
||||
@Override
|
||||
public void unregister(Command command)
|
||||
{
|
||||
plugin.getServer().getCommandMap().getKnownCommands().remove(command.getName());
|
||||
command.getAliases().forEach(alias -> plugin.getServer().getCommandMap().getKnownCommands().remove(alias));
|
||||
plugin.getServer().getCommandMap().getKnownCommands().remove(command.getName().toLowerCase());
|
||||
command.getAliases().forEach(alias -> plugin.getServer().getCommandMap().getKnownCommands().remove(alias.toLowerCase()));
|
||||
command.unregister(plugin.getServer().getCommandMap());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user