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