Difference between revisions of "Command list"

From AAGRINDER wiki
Jump to navigationJump to search
(RAINBOW is now colourful. Also, added dots at the ends of the sentences, as their lack triggers my OCD, as well as improving some informations.)
(Update command list)
Line 1: Line 1:
 
This page contains a list of in-game commands.
 
This page contains a list of in-game commands.
 
This list is not necessarily up to date.
 
This list is not necessarily up to date.
To see a reliable list of available commands, run the '''/help''' command or look at the [https://gitlab.com/MRAAGH/aagrinder/blob/master/server/commands/Commands.js#L47-90 source code].
+
To see a reliable list of available commands, run the '''/help''' command in-game or look at the [https://gitlab.com/MRAAGH/aagrinder/blob/master/server/commands/Commands.js#L47-90 source code].
  
 
Also see a separate list of [[server console|server console commands]].
 
Also see a separate list of [[server console|server console commands]].
Line 10: Line 10:
 
* a description of its arguments,
 
* a description of its arguments,
 
* whether the command is client-side (client-side commands don't interact with the AAGRINDER server) and
 
* whether the command is client-side (client-side commands don't interact with the AAGRINDER server) and
 +
* whether the command is available on the login screen (in the ''your name:'' prompt)
 
* a short description.
 
* a short description.
  
Line 18: Line 19:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Command !! Arguments !! Client-side !! Description
+
! Command !! Arguments !! Client<br />-side !! Login<br />screen !! Description
 
|-
 
|-
  
| /? <br /> /h <br /> /help       || || no || List all available commands.
+
| /? <br /> /h <br /> /help || || no || yes || List all available commands.
 
|-
 
|-
| /about    || || no || Display links to source code.
+
| /about    || || no || no || Display links to source code.
 
|-
 
|-
| /color   || '''color''' || no || Change [[player colors|player color]] (visible to all).
+
| /clear   || || yes || yes || Clear the chatbox.
 
|-
 
|-
| /di      || '''count''' || no || dididididi
+
| /color    || '''color''' || no || no || Change [[player colors|player color]] (visible to all).
 
|-
 
|-
| /hforhelp || || yes || Toggle the "H FOR HELP" notification.
+
| /copyall <br /> /ca || || yes || yes || Copy the entire chatbox to your system clipboard.
 
|-
 
|-
| /home    || || no || Teleport to your home.
+
| /copylast <br /> /cl || || yes || yes || Copy the last chatbox line to your system clipboard.
 
|-
 
|-
| /log      || || no || Send debug logs to server (requires debug server and debug client).
+
| /credits  || || yes || no || Play the credits.
 
|-
 
|-
| /map      || || yes || [[custom key bindings|Remap a key to another key (custom key binding)]].
+
| /di      || '''count''' || no || no || dididididi
 
|-
 
|-
| /me      || '''content''' || no || Displays the message as self-action rather than chat message.
+
| /friend  || '''add/remove''' '''name''' || no || no || Create, accept or reject a friend request or remove a [[friends|friend]].
 
|-
 
|-
| /passwd  || || no || Change your password.
+
| /home    || || no || no || Teleport to your home.
 
|-
 
|-
| /ping    || '''content''' || no || Send something to the server and get it back.
+
| /layout  || '''name''' || yes || yes || Change keyboard layout.
 
|-
 
|-
| /players  || || no || Display a list of online players.
+
| /log      || || yes || no || Display a debug log in browser console (requires debug client).
 
|-
 
|-
| /pop     || || yes || Pop?
+
| /map     || || yes || yes || [[custom key bindings|Remap a key to another key (custom key binding)]].
 
|-
 
|-
| /pos      || || yes || Display your coordinates.
+
| /unmap    || || yes || yes || Unmap a key (remove a binding).
 
|-
 
|-
| /prompt  || || yes || Type your next command or message in a pop-up prompt.
+
| /unmapallkeys || || yes || yes || Unmap all keys that can be unmapped (equivalent to ''/layout emptylayout'').
 
|-
 
|-
| /rainbowme|| '''content''' || no || Same as /me, but <span style="color:#ff0000">R</span><span style="color:#ff8b00">A</span><span style="color:#e8ff00">I</span><span style="color:##5dff00">N</span><span style="color:#00ff2e">B</span><span style="color:#00ffb9">O</span><span style="color:#00b9ff">W</span>.
+
| /me      || '''content''' || no || no || Displays the message as self-action rather than chat message.
 
|-
 
|-
| /sethome  || || no || Set your home to your current position.
+
| /passwd  || || no || no || Change your password.
 
|-
 
|-
| /spawn    || || no || Respawn (teleport to [[spawn area]]).
+
| /ping    || '''content''' || no || no || Send something to the server and get it back.
 
|-
 
|-
| /whisper <br /> /w  || '''player_name content''' || no || [[privacy#collected data|Whisper]] to another player.
+
| /players  || || no || no || Display a list of online players.
 +
|-
 +
| /pop      || || yes || no || Pop?
 +
|-
 +
| /pos      || || yes || no || Display your coordinates and other information.
 +
|-
 +
| /prompt  || || yes || yes || Type your next command or message in a pop-up prompt.
 +
|-
 +
| /rainbow  || '''content''' || no || no || <span style="color:#ff0000">R</span><span style="color:#ff8b00">A</span><span style="color:#e8ff00">I</span><span style="color:##5dff00">N</span><span style="color:#00ff2e">B</span><span style="color:#00ffb9">O</span><span style="color:#00b9ff">W</span>
 +
|-
 +
| /rainbowme|| '''content''' || no || no || Same as /me, but <span style="color:#ff0000">R</span><span style="color:#ff8b00">A</span><span style="color:#e8ff00">I</span><span style="color:##5dff00">N</span><span style="color:#00ff2e">B</span><span style="color:#00ffb9">O</span><span style="color:#00b9ff">W</span>
 +
|-
 +
| /set      || '''''setting''''' <br /> '''no''setting''''' <br /> '''''setting''=''value''''' <br /> '''''setting''?''' <br /> '''''setting''=?'''<br />|| yes || yes || Manipulate and query [[client settings|client settings]. Syntax borrowed from Vim.
 +
|-
 +
| /resetallsettings || || yes || yes || Reset all client settings (clears localstorage)
 +
|-
 +
| /sethome  || || no || no || Set your home to your current position.
 +
|-
 +
| /spawn    || || no || no || Respawn (teleport to [[spawn area]]).
 +
|-
 +
| /bye <br /> /exit <br /> /quit <br /> /leave || || yes || no || Disconnect from the AAGRINDER server.
 +
|-
 +
| /whisper <br /> /w  || '''player_name content''' || no || no || [[privacy#collected data|Whisper]] to another player.
  
 
|}
 
|}
Line 71: Line 94:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Command !! Arguments !! Client-side !! Description
+
! Command !! Arguments !! Client<br />-side !! Description
 
|-
 
|-
  
 +
| /claim            || '''add''' '''x1''' '''y1''' '''x2''' '''y2''' '''account''' <br> '''remove''' '''x1''' '''y1''' '''account''' || no || Add or remove a claimed area for an account
 +
|-
 +
| /clone            || '''x1''' '''y1''' '''x2''' '''y2''' '''xtarget''' '''ytarget''' || no || Clone an area of terrain
 +
|-
 +
| /detectors        || || no || Display coordinates of naturally spawned detectors
 +
|-
 +
| /fill            || '''x1''' '''y1''' '''x2''' '''y2''' '''block''' || no || Fill an area with a specific block
 +
|-
 
| /gamemode <br /> /mode <br /> /g <br /> /m      || '''0-2''' player || no || Change a player's [[game mode]]
 
| /gamemode <br /> /mode <br /> /g <br /> /m      || '''0-2''' player || no || Change a player's [[game mode]]
 
|-
 
|-
| /ghosts          || || no || Display coordinates of all [[ghost|ghosts]]
+
| /ghosts          || || no || Display coordinates of [[ghost|ghosts]]
 
|-
 
|-
 
| /give            || player amount '''item''' || no || Give a player some amount (default 1) of some [[item list|item]]
 
| /give            || player amount '''item''' || no || Give a player some amount (default 1) of some [[item list|item]]
Line 83: Line 114:
 
|-
 
|-
 
| /save            || || no || Request the AAGRINDER server to immediately save the world
 
| /save            || || no || Request the AAGRINDER server to immediately save the world
 +
|-
 +
| /seed            || || no || Display the world seed
 +
|-
 +
| /setblock        || '''x1''' '''y1''' '''block''' || no || Set a specific block
 
|-
 
|-
 
| /setworldspawn    || x y || no || Set the [[spawn area|spawn point]] to a specific position (default: your positon)
 
| /setworldspawn    || x y || no || Set the [[spawn area|spawn point]] to a specific position (default: your positon)
Line 93: Line 128:
 
|-
 
|-
 
| /setblock        || x y '''block''' || no || Set a specified [[block list|block]] at a specific position (default: your position)
 
| /setblock        || x y '''block''' || no || Set a specified [[block list|block]] at a specific position (default: your position)
 +
|-
 +
| /warps            || || no || Display coordinates of loaded [[warp|warps]]
 
|-
 
|-
 
| /sudo            || '''player''' '''command''' || no || Run a command as another player. (requires [[security#authorization|additional privileges]])
 
| /sudo            || '''player''' '''command''' || no || Run a command as another player. (requires [[security#authorization|additional privileges]])
  
 
|}
 
|}

Revision as of 09:47, 28 August 2022

This page contains a list of in-game commands. This list is not necessarily up to date. To see a reliable list of available commands, run the /help command in-game or look at the source code.

Also see a separate list of server console commands.

Non-admin commands

These are commands that can be ran by anyone. The table contains:

  • the name of each command,
  • a description of its arguments,
  • whether the command is client-side (client-side commands don't interact with the AAGRINDER server) and
  • whether the command is available on the login screen (in the your name: prompt)
  • a short description.

Multiple commands in the same row represent multiple aliases for the same command.

Arguments written in bold are mandatory. Where arguments are written in multiple lines, that represents different configurations the arguments are allowed to have for the same command.

Command Arguments Client
-side
Login
screen
Description
/?
/h
/help
no yes List all available commands.
/about no no Display links to source code.
/clear yes yes Clear the chatbox.
/color color no no Change player color (visible to all).
/copyall
/ca
yes yes Copy the entire chatbox to your system clipboard.
/copylast
/cl
yes yes Copy the last chatbox line to your system clipboard.
/credits yes no Play the credits.
/di count no no dididididi
/friend add/remove name no no Create, accept or reject a friend request or remove a friend.
/home no no Teleport to your home.
/layout name yes yes Change keyboard layout.
/log yes no Display a debug log in browser console (requires debug client).
/map yes yes Remap a key to another key (custom key binding).
/unmap yes yes Unmap a key (remove a binding).
/unmapallkeys yes yes Unmap all keys that can be unmapped (equivalent to /layout emptylayout).
/me content no no Displays the message as self-action rather than chat message.
/passwd no no Change your password.
/ping content no no Send something to the server and get it back.
/players no no Display a list of online players.
/pop yes no Pop?
/pos yes no Display your coordinates and other information.
/prompt yes yes Type your next command or message in a pop-up prompt.
/rainbow content no no RAINBOW
/rainbowme content no no Same as /me, but RAINBOW
/set setting
nosetting
setting=value
setting?
setting=?
yes yes Manipulate and query [[client settings|client settings]. Syntax borrowed from Vim.
/resetallsettings yes yes Reset all client settings (clears localstorage)
/sethome no no Set your home to your current position.
/spawn no no Respawn (teleport to spawn area).
/bye
/exit
/quit
/leave
yes no Disconnect from the AAGRINDER server.
/whisper
/w
player_name content no no Whisper to another player.

Admin commands

Commands that only admins can run.

Note that coordinates can be specified either in absolute form or in relative form. Relative coordinates are specified with a ~ and are calculated relative to your player's position. See following example:

/summon ghost ~-10 ~10
Command Arguments Client
-side
Description
/claim add x1 y1 x2 y2 account
remove x1 y1 account
no Add or remove a claimed area for an account
/clone x1 y1 x2 y2 xtarget ytarget no Clone an area of terrain
/detectors no Display coordinates of naturally spawned detectors
/fill x1 y1 x2 y2 block no Fill an area with a specific block
/gamemode
/mode
/g
/m
0-2 player no Change a player's game mode
/ghosts no Display coordinates of ghosts
/give player amount item no Give a player some amount (default 1) of some item
/loaded no Display a list of all loaded chunks
/save no Request the AAGRINDER server to immediately save the world
/seed no Display the world seed
/setblock x1 y1 block no Set a specific block
/setworldspawn x y no Set the spawn point to a specific position (default: your positon)
/summon creature x y no Summon a creature at a specific position (default: your positon)
/teleport
/tp
/t
targetplayer
player targetplayer
x y
player x y
no Teleport yourself or another player to a specific position or another player's position
/tickspeed multiplier no Set server tick speed. Higher multiplier is faster. Default: 1
/setblock x y block no Set a specified block at a specific position (default: your position)
/warps no Display coordinates of loaded warps
/sudo player command no Run a command as another player. (requires additional privileges)