Called when the client is about to send a command,
which is whenever the player executes a command
including client commands registered with fabric-command-api.
Called when the client is about to send a command,
which is whenever the player executes a command
including client commands registered with fabric-command-api.
Returning false prevents the command from being sent, and
ClientSendMessageEvents.COMMAND_CANCELED will be triggered instead of ClientSendMessageEvents.MODIFY_COMMAND.
The command string does not include a slash at the beginning.
Parameters:
command - the command that will be sent to the server, without a slash at the beginning.
Returns:
true if the command should be sent, otherwise false