OnPlayerCommand: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{ScriptItem |endpoint = server |type = event |name = onPlayerCommand |usage = a player submits a chat command.<br>A command starts with a forward slash (the command character...") |
(No difference)
|
Revision as of 20:45, 6 May 2020
Event Server Only
![]()
Online and Offline Cancellable
Available since Server 1.0.0
function(Event event, Client client, string command, string parameters)
The onPlayerCommand event is invoked when a player submits a chat command.
A command starts with a forward slash (the command character), and the command is not displayed in the chat box.
A command starts with a forward slash (the command character), and the command is not displayed in the chat box.
Parameters
| 1) | Event | event | The event object for this event. |
| 2) | Client | client | The client that submitted a command. |
| 3) | string | command | The command name. |
| 4) | string | parameters | The command parameters as a string. |
Attributes
| cancellable | This event can be cancelled, by using event.preventDefault. |
Notes
There aren't any notes for this event.
Examples
There aren't any examples for this event.
Compatibility
There isn't any compatibility information for this event.
Related
Server Related
OnPlayerCommand