public class CommandHandler extends com.google.common.collect.ForwardingCollection<Command> implements Commands
| Constructor and Description |
|---|
CommandHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Command> |
delegate() |
void |
handle(String message,
CommandIssuer issuer)
Handles the message sent, without the preceding "/"
|
int |
register(Plugin plugin,
Command command)
Registers the command for the plugin
|
void |
unregister(Class<? extends Command> cls)
Unregisters the given command handler
|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArraypublic CommandHandler()
protected Collection<Command> delegate()
delegate in class com.google.common.collect.ForwardingCollection<Command>public void handle(String message, CommandIssuer issuer)
Commandspublic int register(Plugin plugin, Command command)
CommandsYou do not need to call this method unless the command is marked with
IgnoreRegistration
public void unregister(Class<? extends Command> cls)
Commandsunregister in interface Commandscls - the command to unregisterCopyright © 2016. All rights reserved.