Commands

From Torch Wiki
Revision as of 21:38, 20 February 2019 by Admin (talk | contribs) (Created page with "Commands are actions you can perform by typing them into the ingame chat or Torch's chat window. Plugins can add their own sets of commands. '''All commands are prefixed with...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Commands are actions you can perform by typing them into the ingame chat or Torch's chat window. Plugins can add their own sets of commands.

All commands are prefixed with !

Arguments

Command arguments require specific kinds of input. Arguments wrapped in <> are required, arguments wrapped in [] are optional with default values specified.

Name Type
bool Boolean (true or false)
int Integer (whole number)
string Text (normal text, wrap in quotes if it contains spaces)

Torch Commands

Command Description Usage Permission
help Displays help for a command help <command> None
longhelp Displays help for all loaded commands longhelp None
ver Shows the current Torch version ver None
plugins Lists the currently loaded plugins plugins None
stop Stops the server, skips saving if false is passed stop [bool save = true] Admin
restart Restarts the server restart [int countdownSeconds] [bool save = true] Admin
restart cancel Cancels a pending restart restart cancel Admin
notify Shows a message as a notification in the middle of all players' screens. notify <string message> [int disappearTimeMs] [string font] Admin
save Saves the game save Admin