public interface CommandSenderProvider
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends CommandSender> |
getCommandSenders(java.lang.String command)
Returns the command senders that handle the given command.
|
java.util.Collection<java.lang.String> |
getRegisteredCommands()
Gets the collections of registered commands with
registerListener(RemoteCommandListener) . |
void |
registerListener(RemoteCommandListener listener)
Registers a listener that will be called when command managed by the listener is read.
|
java.util.Collection<? extends CommandSender> getCommandSenders(java.lang.String command)
Synchronize on this CommandSenderProvider
while using the returned collection to avoid concurrent
modifications of the collection.
void registerListener(RemoteCommandListener listener) throws java.lang.IllegalStateException
listener
- the listener to registerjava.lang.IllegalStateException
- if a listener is already registered for a command managed by the listenerjava.util.Collection<java.lang.String> getRegisteredCommands()
registerListener(RemoteCommandListener)
.