@ThreadSafe public interface Commands extends Registry<Command>
To access this handler, use this code:
Commands handler = Registered.commands();
|Modifier and Type||Method and Description|
Handles the message sent, without the preceding "/"
Registers the command for the plugin
Unregisters the given command handler
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
void handle(String message, CommandIssuer issuer)
message- the command executed
You do not need to call this method unless the command is marked with
plugin- the plugin to register for
command- the command to register
Copyright © 2016. All rights reserved.