Command

From LuaCraft
Jump to: navigation, search

Shared

command.Add(String command, Function callback, [ String usage ])

  • Information: Adds a chat command
  • Return value: nil

command.AutoComplete(String command, Function callback)

  • Information: Adds a callback for command auto completion
  • Return value: nil

command.GetAll()

  • Information: Gets a table of all registered commmands
  • Return value: Table commands

command.Remove(String command)

  • Information: Remove a chat command
  • Return value: nil