CommandSource
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
Represents a source of a command execution, such as anEntity
or the MinecraftServer
. Members
Getter
Checks if the commands from this source should return failure messages
Return Type:
bool
acceptsFailure() as bool
Checks if the commands from this source should return failure messages
Returns: True if the commands from this source should return failure messages, false otherwise.
Return Type:
bool
Getter
Checks if the commands from this source should return successful messages
Return Type:
bool
acceptsSuccess() as bool
Checks if the commands from this source should return successful messages
Returns: True if the commands from this source should return successful messages, false otherwise.
Return Type:
bool
Getter
Checks if the command source always accepts.
Return Type:
bool
alwaysAccepts() as bool
Checks if the command source always accepts.
Returns: True if the command source always accepts, false otherwise.
Return Type:
bool
Getter
Checks if the commands from this source should inform admins.
Return Type:
bool
shouldInformAdmins() as bool
Checks if the commands from this source should inform admins.
Returns: True if the commands from this source should inform admins, false otherwise.
Return Type:
bool