-
Notifications
You must be signed in to change notification settings - Fork 77
nut.command
Brian edited this page Jul 18, 2015
·
4 revisions
This library allows developers create new chat commands. This is pretty essensial library just like character and item.
nut.command.list
- A list of all registered commands.
nut.command.findPlayer(client, name)
- A server-side function to find specific player with the provided name. If the player is not found, then the client will be notified.
nut.command.run(client, command, arguments)
- A server-side function that runs a command as the given player. Arguments is a table that is directly passed to the command's onRun callback.
nut.command.parse(client, text, realCommand, arguments)
- A server-side function to run a command given the player's raw chat text.
nut.command.send(command, ...)
- A client-side function to request a command to be ran to the server.
nut.command.add(command, data)
- A shared function that registers a chat commands.
nut.command.extractArgs(text)
- A shared function to give a table of arguments from given text.