Prints the error (red color) message and marks that the command call has failed.
value of boolean argument by given name
list of entities chosen using entity selector argument by given name
value of floating point argument by given name
value of position argument with floating point coordinates by given name
value of integer argument by given name
value of JSON object argument by given name, or null if an exception occured creating a org.json.JSONObject instance.
value of message argument by given name
a single player chosen using player selector argument by given name, or null if there was more than one or no player chosen
list of players chosen using player selector argument by given name
value of position argument with integer coordinates by given name
the value to add to the specified floating point value,
if the caller used ~
token before it
value of relative float argument by given name
integer position of the command caller
command caller's entity object, or null if the caller is not an entity (for example, command block)
command caller's player object, or null if the caller is not a player
exact floating point position of the command caller
value of string argument by given name
Prints the message of successful command call to the chat.
You can omit msg
param if you just want to mark
that the command call went without errors.
However, calling this method is optional.
Generated using TypeDoc
Wrapper for
Command
,CommandOrigin
andCommandOutput
native classes at the same time used in custom chat command execute callbacks allowing you to access the values of the specified arguments and the entity or another source that called the command, and also to print command's successfull or failed result.3.0