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, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
public CommandHandler()
protected Collection<Command> delegate()
delegate
in class com.google.common.collect.ForwardingCollection<Command>
public void handle(String message, CommandIssuer issuer)
Commands
public int register(Plugin plugin, Command command)
Commands
You do not need to call this method unless the command is marked with
IgnoreRegistration
public void unregister(Class<? extends Command> cls)
Commands
unregister
in interface Commands
cls
- the command to unregisterCopyright © 2016. All rights reserved.