Difference between revisions of "Command list"
Autumn Dawn (talk | contribs) (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.) |
(→Admin commands: added /killall) |
||
(7 intermediate revisions by 2 users not shown) | |||
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/ | + | To see a reliable list of available commands, run the '''/help''' command in-game or look at the [https://gitlab.com/MRAAGH/aagrinder/-/blob/main/public/clientcommands.js?ref_type=heads#L77 source code] and [https://gitlab.com/MRAAGH/aagrinder/-/tree/main/server/commands?ref_type=heads this list of files]. |
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. | ||
+ | |||
+ | Note: some client-side commands can be run on the login screen as well (by typing them instead of the username). A list can be found [https://gitlab.com/MRAAGH/aagrinder/-/blob/main/public/clientcommands.js?ref_type=heads here], or by running '''/help''' on the login screen. Notably, you can run '''/set nom''' to disable the login screen music. | ||
Multiple commands in the same row represent multiple aliases for the same command. | Multiple commands in the same row represent multiple aliases for the same command. | ||
Line 18: | Line 21: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! Command !! Arguments !! Client-side !! Description | + | ! Command !! Arguments !! Client<br />-side !! Login<br />screen !! Description |
|- | |- | ||
− | | /? <br /> /h <br /> /help | + | | /? <br /> /h <br /> /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 colors|player color]] (visible to all). | ||
+ | |- | ||
+ | | /copyall <br /> /ca || || yes || yes || Copy the entire chatbox to your system clipboard. | ||
+ | |- | ||
+ | | /copylast <br /> /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 [[friends|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 || [[custom key bindings|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''). | ||
|- | |- | ||
− | | / | + | | /mute || || yes || yes || Disables music and notification sounds. |
|- | |- | ||
− | | / | + | | /unmute || || yes || yes || Enables music and notification sounds. |
|- | |- | ||
− | | / | + | | /me || '''content''' || no || no || Displays the message as self-action rather than chat message. |
|- | |- | ||
− | | / | + | | /passwd <br /> /password || || no || no || Change your password. |
|- | |- | ||
− | | / | + | | /ping || '''content''' || no || no || Send something to the server and get it back. |
|- | |- | ||
− | | / | + | | /players <br /> /p || || 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 <br /> /s || '''''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. |
|- | |- | ||
− | | / | + | | /source || || yes || yes || Display a link to source code. |
|- | |- | ||
− | | / | + | | /spawn || || no || no || Respawn (teleport to [[spawn area]]). |
|- | |- | ||
− | | / | + | | /bye <br /> /exit <br /> /quit <br /> /leave <br /> /logout <br /> /signout || || yes || no || Disconnect from the AAGRINDER server. |
|- | |- | ||
− | | /whisper <br /> /w || '''player_name content''' || no || [[privacy#collected data|Whisper]] to another player. | + | | /whisper <br /> /w || '''player_name content''' || no || no || [[privacy#collected data|Whisper]] to another player. |
|} | |} | ||
Line 71: | Line 102: | ||
{| 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 | ||
+ | |- | ||
+ | | /clearinventory || player || no || Remove all items from a player's inventory | ||
+ | |- | ||
+ | | /clone || '''x1''' '''y1''' '''x2''' '''y2''' '''xtarget''' '''ytarget''' || no || Clone an area of terrain | ||
+ | |- | ||
+ | | /detectors || || no || Display coordinates of naturally spawned detectors | ||
+ | |- | ||
+ | | /drainhunger || player || no || Set a player's energy level to zero | ||
+ | |- | ||
+ | | /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 | + | | /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]] | ||
+ | |- | ||
+ | | /killall || '''creature''' || no || Kill all creatures of type | ||
|- | |- | ||
| /loaded || || no || Display a list of all [[loaded chunks]] | | /loaded || || no || Display a list of all [[loaded chunks]] | ||
|- | |- | ||
| /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 94: | Line 143: | ||
| /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]] |
|} | |} |
Latest revision as of 11:33, 1 August 2024
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 and this list of files.
Also see a separate list of server console commands.
Non-admin commands[edit]
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.
Note: some client-side commands can be run on the login screen as well (by typing them instead of the username). A list can be found here, or by running /help on the login screen. Notably, you can run /set nom to disable the login screen music.
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). | |
/mute | yes | yes | Disables music and notification sounds. | |
/unmute | yes | yes | Enables music and notification sounds. | |
/me | content | no | no | Displays the message as self-action rather than chat message. |
/passwd /password |
no | no | Change your password. | |
/ping | content | no | no | Send something to the server and get it back. |
/players /p |
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 /s |
setting nosetting setting=value setting? setting=? |
yes | yes | Manipulate and query 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. | |
/source | yes | yes | Display a link to source code. | |
/spawn | no | no | Respawn (teleport to spawn area). | |
/bye /exit /quit /leave /logout /signout |
yes | no | Disconnect from the AAGRINDER server. | |
/whisper /w |
player_name content | no | no | Whisper to another player. |
Admin commands[edit]
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 |
/clearinventory | player | no | Remove all items from a player's inventory |
/clone | x1 y1 x2 y2 xtarget ytarget | no | Clone an area of terrain |
/detectors | no | Display coordinates of naturally spawned detectors | |
/drainhunger | player | no | Set a player's energy level to zero |
/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 |
/killall | creature | no | Kill all creatures of type |
/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 |