Skip to content

nut.command

Kyu Yeon Lee edited this page Jan 11, 2015 · 4 revisions

This library allows developers create new chat commands. This is pretty essensial library just like character and item.

Tables

  • nut.command.list
  • Stores all commands list. Every chat commands are stored in here.

Method

SERVERSIDE

  • nut.command.findPlayer(client, name)
  • Find specific player with the provided name.
  • nut.command.run(client, command, arguments)
  • Runs the command.
  • nut.command.parse(client, text, realCommand, arguments)
  • Parses the command.

CLIENTSIDE

  • nut.command.send(command, ...)
  • Sends commands request to the server from the clientside.

SHARED

  • nut.command.add(command, data)
  • Registers chat commands.
  • nut.command.extractArgs(text)
  • For internal use, This function is made for parsing chat command arguments.
Clone this wiki locally