List of server commands: Difference between revisions

From Vintage Story Wiki
added the new map info
(Moved "see also" links to a See Also section.)
(added the new map info)
 
(30 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<translate><!--T:48--> This is a list of commands that are executed on the server and therefore list/change things that may affect all players. Some of these commands may need [[coordinates]], so make sure you use the right notation.</translate>
<translate><!--T:48--> This is a list of commands that are executed on the server and therefore list/change things that may affect all players. Some of these commands may need {{ll|coordinates|coordinates}}, so make sure you use the right notation.</translate>


{{GameVersion|1.15}}
{{GameVersion|1.15}}
Line 16: Line 16:
</translate>
</translate>
=== /land ===  
=== /land ===  
<translate><!--T:117--> Commands for {{ll|Land_claiming|Land Claiming}}</translate>
{{:List of server commands/land{{#translation:}}}}
{{:List of server commands/land{{#translation:}}}}


Line 22: Line 23:


=== /waypoint ===   
=== /waypoint ===   
<translate><!--T:51--> These commands affect the players [[Worldmap]] and waypoints.</translate>
<translate><!--T:51--> These commands affect the players {{ll|Worldmap|Worldmap}} and waypoints.</translate>
* <code>/waypoint [add|addat|addati|list|remove]</code><br /> <translate><!--T:52--> Add and edit your list of waypoints.</translate>
* <code>/waypoint [add|addat|addati|list|remove]</code><br /> <translate><!--T:52--> Add and edit your list of waypoints.</translate>
** <code>/waypoint add [color] [title]</code><br /> <translate><!--T:53--> Adds a waypoint with given color and text at your current position. The color may be any named [http://www.99colors.net/dot-net-colors .NET Color or a Hex Code].<br /> Example: <code>/waypoint add red copper</code></translate>   
** <code>/waypoint add [color] [title]</code><br /> <translate><!--T:53--> Adds a waypoint with given color and text at your current position. The color may be any named [http://www.99colors.net/dot-net-colors .NET Color or a Hex Code].<br /> Example: <code>/waypoint add red copper</code></translate>   
** <code>/waypoint addat [coords] [pinned] [color] [title]</code><br /> <translate><!--T:54--> Add a waypoint at the given [[coordinates]].</translate>
** <code>/waypoint addat [coords] [pinned] [color] [title]</code><br /> <translate><!--T:54--> Add a waypoint at the given {{ll|coordinates|coordinates}}.</translate>
** <code>/waypoint addati [icon] [x] [y] [z] [pinned] [color] [title]</code><br /> <translate><!--T:55--> Add a waypoint at your current location, including colour and [[VTML|icon]] info.</translate>
** <code>/waypoint addati [icon] [x] [y] [z] [pinned] [color] [title]</code><br /> <translate><!--T:55--> Add a waypoint at your current location, including colour and {{ll|VTML|icon}} info.</translate>
** <code>/waypoint list</code><br /> <translate><!--T:56--> Shows a list of all player waypoints by id number.</translate>
** <code>/waypoint list</code><br /> <translate><!--T:56--> Shows a list of all player waypoints by id number.</translate>
** <code>/waypoint remove [id]</code><br /> <translate><!--T:57--> Removes the waypoint id as shown in <code>/waypoint list</code>.</translate>
** <code>/waypoint remove [id]</code><br /> <translate><!--T:57--> Removes the waypoint id as shown in <code>/waypoint list</code>.</translate>
Line 45: Line 46:


=== /giveblock ===
=== /giveblock ===
* <code>/giveblock [blockcode] [quantity] [toplayername] [attributes]</code><br /> <translate><!--T:61--> Creates an itemstack of the specified block in the specified quantity, and gives it to the specified player. The player must have an empty inventory slot to receive the itemstack. Quantity, toplayername and attributes are optional. The default quantity is 1. If player name is not set, the command user's own player is targeted. If attributes are specified, they must be written in the same format as in a JSON file (note: spacing is optional in JSONs and it will be easier to omit spaces here)</translate>
* <code>/giveblock [blockcode][{attributes}] [quantity] [toplayername]</code><br /> <translate><!--T:61--> Creates an itemstack of the specified block in the specified quantity, and gives it to the specified player. The player must have an empty inventory slot to receive the itemstack. Quantity, toplayername and attributes are optional. The default quantity is 1. If player name is not set, the command user's own player is targeted. Attributes may optionally be supplied in curly braces after the blockcode without a space between the block name and the braces. The attributes should be given in JSON format. Example: <code>/giveblock clutter{type: "barrel-metal1"}</code></translate>


=== /giveitem ===  
=== /giveitem ===  
Line 51: Line 52:


=== /gamemode ===
=== /gamemode ===
{{:List of server commands/gamemode}}
{{:List of server commands/gamemode{{#translation:}}}}
=== /gm ===
=== /gm ===
Shorthand of <code>/gamemode</code>
<translate><!--T:106--> Shorthand of <code>/gamemode</code></translate>


=== /tp ===
=== /tp ===
{{:List of server commands/tp}}
{{:List of server commands/tp{{#translation:}}}}


=== /ban ===
=== /ban ===
Line 69: Line 70:
=== /clear ===
=== /clear ===
* <code>/clearinv</code><br /> <translate><!--T:66--> Removes all items from your inventory.</translate>
* <code>/clearinv</code><br /> <translate><!--T:66--> Removes all items from your inventory.</translate>
=== /clearentities ===
* <code>/clearentities</code><br /> <translate><!--T:92--> Removes all entities (except playerentities and blockentities) from all loaded chunks.</translate>


=== /nexttempstorm ===
=== /nexttempstorm ===
Line 77: Line 75:
* <code>/nexttempstorm now</code><br /> <translate><!--T:94--> Fast forwards the time so that a temporal storm starts right away.</translate>
* <code>/nexttempstorm now</code><br /> <translate><!--T:94--> Fast forwards the time so that a temporal storm starts right away.</translate>


== Privilege Control ==
<translate>== Privilege Control == <!--T:104--></translate>
=== /op ===
=== /op ===
* <code>/op [playername]</code><br /> <translate><!--T:67--> Alias of <code>/player [playername] role admin</code>.</translate>
* <code>/op [playername]</code><br /> <translate><!--T:67--> Alias of <code>/player [playername] role admin</code>.</translate>


=== /role ===  
=== /role ===  
{{:List of server commands/role}}
{{:List of server commands/role{{#translation:}}}}


=== /player ===  
=== /player ===  
{{:List of server commands/player}}
{{:List of server commands/player{{#translation:}}}}
 
== World Control ==
=== /seed ===
* <code>/seed</code><br /> <translate><!--T:68--> Shows the world seed</translate>


<translate>== World Control == <!--T:105--></translate>
=== /worldconfig ===
=== /worldconfig ===
<translate><!--T:107-->
Protip: Do not actually type the [ ] shown in this command syntax, that is intended only to show which values can be changed!
Protip: Do not actually type the [ ] shown in this command syntax, that is intended only to show which values can be changed!


See dedicated page on [[World Configuration]]
<!--T:108-->
See dedicated page on {{ll|World Configuration|World Configuration}}</translate>
 
==== World map ====
 
All of the following work<ref>Tested 15 Mar 2024 in version 1.19.4</ref> in a singleplayer world to restore the parchment-style map to the classic colorful map:
* <code>/worldconfig colorAccurateWorldmap true</code>
* <code>/worldconfigcreate bool colorAccurateWorldmap true</code>
* <code>/player [playername] privilege grant colorAccurateWorldmap</code>
 
In a multiplayer world, the following restores the classic map for an individual:
* <code>/player [playername] privilege grant colorAccurateWorldmap</code>
while the following restores the classic map for all players:
* <code>/worldconfig colorAccurateWorldmap true</code>
* <code>/worldconfigcreate bool colorAccurateWorldmap true</code>
(needs confirmation)


=== /entity ===
=== /entity ===
Line 100: Line 111:


=== /time ===  
=== /time ===  
{{Messagebox
|title= Warning
|text= Using commands to modify time frequently has unwanted side effects.  To avoid losing a world, test time commands in a ''separate'' world, and/or create a ''backup''.
}}
{{:List of server commands/time{{#translation:}}}}
{{:List of server commands/time{{#translation:}}}}


Line 114: Line 131:
=== /announce ===
=== /announce ===
* <code>/announce [message]</code><br /> <translate><!--T:71--> Announce a server wide message in all chat groups.</translate>
* <code>/announce [message]</code><br /> <translate><!--T:71--> Announce a server wide message in all chat groups.</translate>
=== /welcome ===
* <code>/welcome [message]</code><br /> <translate><!--T:72--> Sets the server's welcome message.</translate>


=== /stop ===
=== /stop ===
* <code>/stop</code><br /> <translate><!--T:73--> Stops the server.</translate>
* <code>/stop</code><br /> <translate><!--T:73--> Stops the server.</translate>
=== /autosavenow===
* <code>/autosavenow</code><br /> <translate> <!--T:118--> Autosaves the server.</translate>


=== /list ===  
=== /list ===  
Line 133: Line 150:
== <translate><!--T:79--> Utility and Debug Tools</translate> ==
== <translate><!--T:79--> Utility and Debug Tools</translate> ==
=== /moddb ===
=== /moddb ===
*<code>/moddb [install|remove|list|search] [modid]</code><br /> ModDB utility. To install and remove mods.
{{GameVersion|1.18.0-pre.7}}
*<code>/moddb [install|remove|list|search|searchcompatible|searchfor|searchforc]</code><br /> <translate><!--T:109--> ModDB utility. To install and remove mods.</translate>
**<code>/moddb install [modid] [gameVersion]</code> : <translate><!--T:110--> Install the specified mod.</translate>
**<code>/moddb remove [modid]</code> : <translate><!--T:111--> Uninstall the specified mod.</translate>
**<code>/moddb list</code> : <translate><!--T:112--> List all installed mods.</translate>
**<code>/moddb search [query]</code> : <translate><!--T:113--> Full-text search on ModDB.</translate>
**<code>/moddb searchcompatible [modid]</code> : <translate><!--T:114--> Search for a mod, filtered for game versions compatible with the current version.</translate>
**<code>/moddb searchfor [gameVersion] [modid]</code> : <translate><!--T:115--> Search for a mod, filtered for the specified game version only.</translate>
**<code>/moddb searchforc [gameVersion] [modid]</code> : <translate><!--T:116--> Search for a mod, filtered for game versions compatible with the specified version.</translate>


=== /fixmapping ===
=== /fixmapping ===
Line 144: Line 169:
* <code>/bir [getid|getcode|remap]</code><br /> <translate><!--T:82--> Block id remapper tools. Useful to fix broken blocks after removing/updating custom blocks.</translate>
* <code>/bir [getid|getcode|remap]</code><br /> <translate><!--T:82--> Block id remapper tools. Useful to fix broken blocks after removing/updating custom blocks.</translate>


=== /forceloadchunks ===  
=== /chunk ===  
* <code>/forceloadchunks x1 z1 x2 z2 [sendtoclient]</code><br /> <translate><!--T:83--> Tells the server to load given area and prevents unloading. If the Boolean <code>sendtoclient</code> is added it will also forcefully send all these chunks to the client.</translate>
* <code>/chunk [cit|printmap|unload|forceload]</code><br /> <translate><!--T:83--> Chunk commands.</translate>
 
* <code>/chunk cit</code><br /> <translate><!--T:84--> Current chunk generation info.</translate>
=== /sendchunks ===
* <code>/chunk printmap</code><br /> <translate><!--T:85--> Export a png file of a map of loaded chunks. Marks call location with a yellow pixel.</translate>
* <code>/sendchunks [0|1]</code><br /> <translate><!--T:84--> Toggles whether to send any new chunks to the client. Forced chunks are still loaded.</translate>
* <code>/chunk unload [0|1]</code><br /> <translate><!--T:86--> Toggles whether the server should automatically unload chunks that are no longer in range of any players and also send chunk unload commands to the clients.</translate>
 
* <code>/chunk forceload x1 z1 x2 z2</code><br /> <translate><!--T:87--> Tells the server to load given area and prevents unloading.</translate>
=== /chunkunload ===
* <code>/chunkunload [0|1]</code><br /> <translate><!--T:85--> Toggles whether the server should automatically unload chunks that are no longer in range of any players and also send chunk unload commands to the clients.</translate>
 
=== /reloadmods ===
* <code>/reloadmods</code><br /> <translate><!--T:86--> Reloads all server mods that support reloading.</translate>
 
=== /cit ===
* <code>/cit</code><br /> <translate><!--T:87--> Current chunk generation info.</translate>


=== /whenwillitstopraining ===
=== /whenwillitstopraining ===
Line 163: Line 180:


=== /roomregdebug ===
=== /roomregdebug ===
Removed and replaced with <code>/debug room</code> as of version 1.19. These commands are kept for archival purposes.
* <code>/roomregdebug [list|hi|unhi]</code><br /> <translate><!--T:96--> Room registration debug tools.</translate>
* <code>/roomregdebug [list|hi|unhi]</code><br /> <translate><!--T:96--> Room registration debug tools.</translate>
** <code>/roomregdebug list</code><br /> <translate> <!--T:97--> Lists all rooms the player is in.</translate>
** <code>/roomregdebug list</code><br /> <translate> <!--T:97--> Lists all rooms the player is in.</translate>
Line 180: Line 199:
<translate>
<translate>
<!--T:100-->
<!--T:100-->
See [[How_to_use_WorldEdit|How to use WorldEdit]]
See {{ll|How_to_use_WorldEdit|How to use WorldEdit}}
</translate>
</translate>
=== /macro ===  
=== /macro ===  
{{:List of server commands/macro{{#translation:}}}}
{{:List of server commands/macro{{#translation:}}}}
<translate>


=== /expclang ===
== See also == <!--T:102-->
* <code>/expclang</code><br /> <translate><!--T:101--> Export a list of block and item translations and add placeholders for missing translations.</translate>
 
<translate>
== See also ==




* [[List of client commands]]
<!--T:103-->
* [[World Configuration]]
* {{ll|List of client commands|List of client commands}}
* {{ll|World Configuration|World Configuration}}
</translate>
</translate>
{{Game navbox}}
{{Navbox/modding}}
{{Navbox/modding}}
Confirmedusers, editor
1,052

edits