List of server commands: Difference between revisions

From Vintage Story Wiki
added the new map info
(added the new map info)
 
(38 intermediate revisions by 10 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 therefor 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>
 
<translate><!--T:49--> See also: [[List of client commands]]</translate>


{{GameVersion|1.15}}
{{GameVersion|1.15}}
Line 14: Line 12:


__TOC__
__TOC__
 
<translate>
== Multiplayer Commands for Players ==  
== Multiplayer Commands for Players == <!--T:89-->
</translate>
=== /land ===  
=== /land ===  
{{:List of server commands/land}}
<translate><!--T:117--> Commands for {{ll|Land_claiming|Land Claiming}}</translate>
{{:List of server commands/land{{#translation:}}}}


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


=== /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 35: Line 35:


=== /emote ===
=== /emote ===
* <code>/emote [wave|cheer|shrug|cry|nod|facepalm|bow|laugh|rage] </code><br /><translate> <!--T:88--> Character does an emote animation.</translate>
* <code>/emote [wave|cheer|shrug|cry|nod|facepalm|bow|laugh|rage] </code><br /><translate><!--T:90--> Character does an emote animation.</translate>


=== /pm ===
=== /pm ===
* <code>/pm [playername] [message] </code><br /><translate>Send a private message to a user (creates a temporary group)</translate>
* <code>/pm [playername] [message] </code><br /><translate><!--T:91--> Send a private message to a user (creates a temporary group)</translate>




Line 46: 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 52: Line 52:


=== /gamemode ===
=== /gamemode ===
{{:List of server commands/gamemode}}
{{:List of server commands/gamemode{{#translation:}}}}
=== /gm ===
<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 68: 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>Removes all entities (except playerentities and blockentities) from all loaded chunks.</translate>


=== /nexttempstorm ===
=== /nexttempstorm ===
* <code>/nexttempstorm </code><br /> <translate>Tells you the amount of days left until the next temporal storm.</translate>
* <code>/nexttempstorm </code><br /> <translate><!--T:93--> Tells you the amount of days left until the next temporal storm.</translate>
* <code>/nexttempstorm now</code><br /> <translate>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 ===
{{:List of server commands/entity}}
{{:List of server commands/entity{{#translation:}}}}


=== /time ===  
=== /time ===  
{{:List of server commands/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:}}}}


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


== <translate><!--T:69--> Server control and configuration</translate> ==
== <translate><!--T:69--> Server control and configuration</translate> ==
=== /serverconfig ===
=== /serverconfig ===
{{:List of server commands/serverconfig}}
{{:List of server commands/serverconfig{{#translation:}}}}


=== /stats ===
=== /stats ===
Line 113: 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 128: Line 146:


=== /allowlan ===
=== /allowlan ===
* <code>/allowlan [on|off]</code><br /> <translate>Whether or not to allow external lan connections to the server (temporary runtime setting for non dedicated servers)</translate>
* <code>/allowlan [on|off]</code><br /> <translate><!--T:95--> Whether or not to allow external lan connections to the server (temporary runtime setting for non dedicated servers)</translate>


== <translate><!--T:79--> Utility and Debug Tools</translate> ==
== <translate><!--T:79--> Utility and Debug Tools</translate> ==
=== /moddb ===
{{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 ===
* <code>/fixmapping applyall</code><br /> <translate><!--T:80--> Applies block and item remapping in order to upgrade to a new version of the game</translate>
* <code>/fixmapping applyall</code><br /> <translate><!--T:80--> Applies block and item remapping in order to upgrade to a new version of the game</translate>
Line 140: 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 159: Line 180:


=== /roomregdebug ===
=== /roomregdebug ===
* <code>/roomregdebug [list|hi|unhi]</code><br /> <translate><!--T:89--> Room registration debug tools.</translate>
Removed and replaced with <code>/debug room</code> as of version 1.19. These commands are kept for archival purposes.
** <code>/roomregdebug list</code><br /> <translate> Lists all rooms the player is in.</translate>
 
** <code>/roomregdebug hi </code><br /> <translate> Highlights the space of rooms with color. Unsuitable rooms are in red, eligible rooms are in green.</translate>
* <code>/roomregdebug [list|hi|unhi]</code><br /> <translate><!--T:96--> Room registration debug tools.</translate>
** <code>/roomregdebug unhi </code><br /> <translate> Removes room highlighting.</translate>
** <code>/roomregdebug list</code><br /> <translate> <!--T:97--> Lists all rooms the player is in.</translate>
** <code>/roomregdebug hi </code><br /> <translate> <!--T:98--> Highlights the space of rooms with color. Unsuitable rooms are in red, eligible rooms are in green.</translate>
** <code>/roomregdebug unhi </code><br /> <translate> <!--T:99--> Removes room highlighting.</translate>


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


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


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


=== /we ===  
=== /we ===  
See [[How_to_use_WorldEdit|How to use WorldEdit]]
<translate>
<!--T:100-->
See {{ll|How_to_use_WorldEdit|How to use WorldEdit}}
</translate>
=== /macro ===
{{:List of server commands/macro{{#translation:}}}}
<translate>


=== /macro ===
== See also == <!--T:102-->
{{:List of server commands/macro}}


=== /expclang ===
* <code>/expclang</code><br /> <translate>Export a list of block and item translations and add placeholders for missing translations.</translate>


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

edits