CommandIssuer
This is a guide to learn how to use CommandIssuer class.
What is CommandIssuer ?
CommandIssuer
is like the CommandSender
class but with more features. An instance of this class is automatically created when a user executes a command and it is accessible in the onCommand()
method.
Available methods
Method | Type | Description |
|
| Returns |
|
| Returns the |
|
| Returns the type of user who has executed the command ( |
|
| Returns the |
|
| Returns the issued command as |
|
| Returns the issued command as |
|
| Send the message at the specified path |
|
| Send the |
|
| Send a message to the |
sendCommandMessage()
and sendTextComponent()
methods are available only if you're using a command resource file containing a CommandMessage
section.
If you're using CommandHelp
or CommandUsage
features, you can also use this method which will send help to the command issuer:
Parameter | Description |
| The label of the executed command |
| The arguments of the executed command |
| The number of the help page to send |
| Set |
label
and args
are recovered from the onCommand()
method.
Last updated