List of server commands: Difference between revisions

From Vintage Story Wiki
added the new map info
(Added /serverconfig allowpvp, as requested in Discord. Order in list may need to be changed in agreement with actual config file order.)
(added the new map info)
 
(104 intermediate revisions by 20 users not shown)
Line 1: Line 1:
<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 {{ll|coordinates|coordinates}}, so make sure you use the right notation.</translate>
{{GameVersion|1.15}}
{{Protip
|<translate><!--T:50-->
1. Server commands all start with /
2. Do not type the [ and ] in the command syntax e.g. the correct command is  /time set 12  not  /time set [12]
3. After a change of server settings, the world needs to be restarted for the changes to take effect.</translate>
}}
__TOC__
<translate>
<translate>
<!--T:1-->
== Multiplayer Commands for Players == <!--T:89-->
__TOC__
</translate>
=== /land ===
<translate><!--T:117--> Commands for {{ll|Land_claiming|Land Claiming}}</translate>
{{:List of server commands/land{{#translation:}}}}
 
=== /group === 
{{:List of server commands/group{{#translation:}}}}
 
=== /waypoint === 
<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 [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 {{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 {{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 remove [id]</code><br /> <translate><!--T:57--> Removes the waypoint id as shown in <code>/waypoint list</code>.</translate>
 
=== /kill ===
* <code>/kill</code><br /> <translate><!--T:58--> Kills the player.</translate>
 
=== /emote ===
* <code>/emote [wave|cheer|shrug|cry|nod|facepalm|bow|laugh|rage] </code><br /><translate><!--T:90--> Character does an emote animation.</translate>
 
=== /pm ===
* <code>/pm [playername] [message] </code><br /><translate><!--T:91--> Send a private message to a user (creates a temporary group)</translate>
 
 
== <translate><!--T:59--> Commands for Moderators and Admins</translate> ==
=== /help ===
* <code>/help</code><br /> <translate><!--T:60--> List all server commands.</translate>
 
=== /giveblock ===
* <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>


== Multiplayer Commands for Players == <!--T:2-->
=== /giveitem ===  
* <code>/giveitem [itemcode] [quantity] [toplayername] [attributes]</code><br /> <translate><!--T:62--> Same as above but for items.</translate>


=== Land claiming === <!--T:3-->
=== /gamemode ===
* <code>/land [claim|free|info|list]</code><br />Claim an area of the world where only you can build or use blocks in.
{{:List of server commands/gamemode{{#translation:}}}}
=== /gm ===
<translate><!--T:106--> Shorthand of <code>/gamemode</code></translate>


* <code>/land list</code><br />Displays a list of the claims that you made so far, you can use displayed index number to modify it, see below.
=== /tp ===
* <code>/land info</code><br />Display information on the claimant of the current position, if there is any.
{{:List of server commands/tp{{#translation:}}}}
* <code>/land free [index]</code><br />Deletes a claim of yours.


* <code>/land claim [load|new|grant|revoke|gn|ge|gs|gw|gu|gd|start|end|add|plevel|fullheight|save|cancel]</code><br />Create or modify an existing claim.
=== /ban ===
** <code>/land claim load [0..999]</code><br />Load an existing claim for modifying. Use index number as shown in /land list to select which claim.
* <code>/ban [playername] [reason]</code><br /> <translate><!--T:63--> Ban a player.</translate>
** <code>/land claim new</code><br />Create a new claim, also marks the start position.
** <code>/land claim grant [playername] [use|all]</code><br />Grant given player access to your claim. 'use' for only use/interact rights, 'all' for use and place/break block rights.
** <code>/land claim revoke [playername]</code><br />Revoke a previously granted privilege to given player on your claim.
** <code>/land claim grantgroup [groupname] [use|all]</code><br />Grant given player group access to your claim. 'use' for only use/interact rights, 'all' for use and place/break block rights.
** <code>/land claim revokegroup [groupname]</code><br />Revoke a previously granted privilege to given player group on your claim.
** <code>/land claim allowuseeveryone [true|false]</code><br />Grant or Revoke use access to all players
** <code>/land claim start</code><br />Mark a start position for a cuboidal area to be claimed.
** <code>/land claim end</code><br />Mark an end position for a cuboidal area to be claimed.
** <code>/land claim [gn|ge|gs|gw|gu|gd] [-99..99]</code><br />Grow the currently selected cuboid towards north/east/south/west/up/down by given length. If no length is supplied then the selection is grown by 1 block.
** <code>/land claim [sn|se|ss|sw|su|sd] [-99..99]</code><br />Shrink the currently selected cuboid towards north/east/south/west/up/down by given length. If no length is supplied then the selection is shrunk by 1 block.
** <code>/land claim add</code><br />Adds the currently selected cuboid to the currently edited claim. A claim may exist of multiple cuboids, as long as they are adjacent to eachother.
** <code>/land claim fullheight</code><br />Vertically grow the currently selected cuboid to encompass the full height from world bottom to world top. Note that with default settings this is not possible because players cannot claim that many chunks.
** <code>/land claim save [description]</code><br />Save current claim modifications and stop editing the current claim.
** <code>/land claim cancel</code><br />Discard all modifications to this claim.


=== Groups === <!--T:4-->
=== /unban ===
* <code>/group [create|disband|rename|invite|acceptinvite|leave|list|kick|op|deop]</code><br />Create/manage or destrory a player group. Player groups currently only serve the function of offering a seperate channel to chat in in addition to granting access to claimed areas.
* <code>/unban [playername]</code><br /> <translate><!--T:64--> Unban a player.</translate>
** <code>/group create [groupname]</code><br/>Creates a new player group, own chat channel. While in the this group's chat channel:
** <code>/group invite [playername]</code><br/>Invites a player to this group
** <code>/group acceptinvite [groupname]</code><br />Accept an invite to join the group
** <code>/group leave</code><br />Leaves this player group.
** <code>/group list</code><br />Lists all groups you are currently in.
** <code>/group rename newgroupname</code><br />Renames the group.
** <code>/group kick [playername]</code><br />Removes a player from the group.
** <code>/group op [playername]</code><br />Grants operator status to this player, which allows them to invite other players.
** <code>/group deop [playername]</code><br />Revokes operator status from this player.
** <code>/group disband</code><br />Destroy a player group. Must be owner to perform this command.


=== Other === <!--T:5-->
=== /kick ===
* <code>/kill</code><br />Kills the player.
* <code>/kick [playername] [reason]</code><br /> <translate><!--T:65--> Kick a player.</translate>


== Commands for Moderators and Admins== <!--T:6-->
=== /clear ===
* <code>/help</code><br />List all commands.
* <code>/clearinv</code><br /> <translate><!--T:66--> Removes all items from your inventory.</translate>


=== Player Control ===
=== /nexttempstorm ===
* <code>/giveblock [blockcode] [quantity] [toplayername]</code><br />Creates an itemstack of given block with given stack size to given player name. If player name is not set, the own player is targeted.
* <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><!--T:94--> Fast forwards the time so that a temporal storm starts right away.</translate>


* <code>/giveitem [itemcode] [quantity] [toplayername]</code><br />Same as above but for items
<translate>== Privilege Control == <!--T:104--></translate>
=== /op ===
* <code>/op [playername]</code><br /> <translate><!--T:67--> Alias of <code>/player [playername] role admin</code>.</translate>


* <code>/gamemode [0..4|guest|survival|creative|spectator]</code><br />Mode names can be shortened to any length. Sets your game mode:
=== /role ===
** <code>0|guest</code> Guest mode - Cannot place/remove any blocks but can interact with them
{{:List of server commands/role{{#translation:}}}}
** <code>1|survival</code> Survival mode - Can slowly break/place blocks. Can die. Cannot fly. Survival inventory.
** <code>2|creative</code> Creative mode - Access to all blocks through the creative inventory. Instant block breaking. Cannot die. Can fly.
** <code>3|spectator</code> Spectator mode - Cannot place/remove blocks and cannot interact with anything, but can fly.


* <code>/gamemode [playername] [0..4]</code><br />Sets the gamemode for given player.
=== /player ===
{{:List of server commands/player{{#translation:}}}}


* <code>/tp [coordinates]</code><br />Teleport yourself to a different position.
<translate>== World Control == <!--T:105--></translate>
** <code>/tp x y z</code><br />Teleports the player to given pretty coordinate visible from the pretty coordinate box.
=== /worldconfig ===
** <code>/tp =x =y =z</code><br />Teleports the player to given absolute coordinate visible from the debug screen on ALT + F3.
<translate><!--T:107-->
** <code>/tp ~x ~y ~z</code><br />Teleports player by a given relative distance, i.e. teleport ~1 ~0 ~0 will teleport the player one block in x direction.
Protip: Do not actually type the [ ] shown in this command syntax, that is intended only to show which values can be changed!


* <code>/tp [playername] [coordinates]</code><br />Teleport given player to a different position.
<!--T:108-->
See dedicated page on {{ll|World Configuration|World Configuration}}</translate>


* <code>/tp [playername]</code><br/ >Teleport yourself to given player.
==== World map ====


* <code>/ban [reason]</code><br />Ban a player.
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>


* <code>/unban [playername]</code><br />Unban a player.
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)


* <code>/kick [reason]</code><br />Kick a player.
=== /entity ===
{{:List of server commands/entity{{#translation:}}}}


* <code>/clear</code><br />Removes all items from your inventory.
=== /time ===


==Privilege Control==
{{Messagebox
*<code>/op [playername]</code> Shorthand for <code>/player [playername] role admin</code>
|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''.
}}


*<code>/role [rolename] [roleproperty]</code><br /> Display or modify <code>[roleproperty]</code> on role <code>[rolename]</code>.
{{:List of server commands/time{{#translation:}}}}
**<code>/role [rolename] spawnpoint [x] [y?] [z]</code> <br />Configure a role specific spawn point. Any player that has this role will spawn at this location.
**<code>/role [rolename] privilege [grant|revoke] [privelegename]</code><br />Grant or revoke privileges from given role.
**<code>/role [rolename] landclaimallowance [value]</code><br />Set the max allowed claimable area in cubic meters for every player that has this role. (default: 4 chunks = 4*32*32*32 cubic meters = 131072)
**<code>/role [rolename] landclaimmaxareas [value]</code><br /> Set the max quantity of non-adjacent areas a player may claim. (default: 3)
**<code>/role [rolename] landclaimminsize [x y z]</code><br /> Set the smallest cuboid a player may claim. (default: 6 by 6 by 6)


*<code>/player [playername] [whitelist|privilege|role|entity|stats|gamemode|landclaimallowance|landclaimmaxareas]</code><br />Modify or display player data.
=== /weather ===
**<code>/player [playername] whitelist</code><br>See current whitelist mode of given player.
{{:List of server commands/weather{{#translation:}}}}
**<code>/player [playername] whitelist on</code><br /> Adds a player to a server whitelist.
**<code>/player [playername] privilege</code><br />Lists the players current privileges.
**<code>/player [playername] privilege [grant|revoke] [privilegename]</code><br />Grants or revokes given privilege for this player.
**<code>/player [playername] role</code><br />Shows the players current privilege role. (default: suplayer)
**<code>/player [playername] role [rolename]</code><br />Sets the players current privilege role. (default: suplayer)
**<code>/player [playername] stats</code><br />Shows a summary of the players current privileges.
**<code>/player [playername] gamemode [0..4 or partially/fully written game mode name]</code><br />Shows or sets the players current game mode.
**<code>/player [playername] landclaimallowance [0..9999]</code><br />Shows or sets a player specific extra land claim allowance, independent of the allowance set by the role. (default: 0)
**<code>/player [playername] landclaimmaxareas [0..9999]</code><br /><span>Shows or sets a player specific extra land claim areas allowance<span>, independent of the allowance set by the role. (default: 0)


==World Control== <!--T:7-->
== <translate><!--T:69--> Server control and configuration</translate> ==
*<code>/seed</code><br />Shows the world seed
=== /serverconfig ===
{{:List of server commands/serverconfig{{#translation:}}}}


=== World Config ===
=== /stats ===
*<code>/worldconfig [config]</code><br />Modify current play style. Most of these settings require a restart of the server to take effect.
* <code>/stats</code><br /> <translate><!--T:70--> Show current server statistics, tick rate, memory usage, etc..</translate>
**<code>/worldconfig worldEdge [blocked|traversable]</code><br />Wether you can fall off the world edge (default: traversable)
**<code>/worldconfig globalTemperature [0-5]</code><br />Sets the global temperature multiplier for world generation. Does not affect already generated chunks. Useful values are between 0.1 and 5, where 0.1 is super cold, and 5 is super hot. (default: 1)
**<code>/worldconfig globalPrecipitation [0-5]</code><br /> Sets the global rainfall multiplier for world generation. Does not affect already generated chunks. Useful values are between 0.1 and 5, where 0.1 is super dry and 5 is super wet (default: 1)
**<code>/worldconfig microblockChiseling [true|false]</code><br /> Whether to allow microblock chiseling (default: false)
**<code>/worldconfig temporalStorms [off|veryrare|rare|somtimes|often|veryoften]</code><br /> How frequent temporal storms should be (default: sometimes)
**<code>/worldconfig temporalStability [false|true]</code><br /> Whether or not the temporal stability mechanic should apply (default: true)
**<code>/worldconfig deathPunishment [drop|keep]</code><br /> Whether to drop your inventory upon death (default: drop)
**<code>/worldconfig graceTimer [0-9999]</code><br /> How many days it takes for monster to appear (default: 5)
**<code>/worldconfig creatureHostility [aggressive|passive|off]</code><br /> Set default creature hostility (default: aggressive)
**<code>/worldconfig creatureStrength [0-99]</code><br /> Sets the creature damage multiplier (default: 1)
**<code>/worldconfig playerHealthPoints [1-999]</code><br /> Set the players base health points (default: 15)
**<code>/worldconfig playerHungerSpeed [0-10]</code><br /> Set the players hunger rate multiplier (default: 1)
**<code>/worldconfig playerMoveSpeed [0-10]</code><br /> Set the players move speed multiplier (default: 1.5)
**<code>/worldconfig blockGravity [sandgravel|sandgravelsoil]</code><br /> Set the block gravity behavior for either just sand and gravel or additionally also soil (default: sandgravel)
**<code>/worldconfig foodSpoilSpeed [0-10]</code><br /> Set the spoilage rate multiplier of all perishable foods, e.g. 0.5 means all food lasts twice as long (default: 1)
**<code>/worldconfig saplingGrowthDays [0-999]</code><br /> Set the amount of days a tree takes to grow on average (default: 8)
**<code>/worldconfig toolDurability [0-99]</code><br /> Set the tool durability multiplier, e.g. 2 means all tools have double durability. (default: 1)
**<code>/worldconfig toolMiningSpeed [0-99]</code><br /> Set the tool mining speed multiplier, e.g. 2 means all tools have break blocks twice as fast. (default: 1)
**<code>/worldconfig allowCoordinateHud [true|false]</code><br /> Whether or not players are allowed to used the coordinate hud. (default: true)
**<code>/worldconfig allowMap [true|false]</code><br /> Whether or not players are allowed to used the world map. (default: true)
**<code>/worldconfig allowLandClaiming [true|false]</code><br /> Whether or not players are allowed to use the land claiming system. (default: true)
**<code>/worldconfig surfaceCopperDeposits [0-5]</code><br /> Set chance of surface copper spawning for each chunk column (default: 0.1)
**<code>/worldconfig surfaceTinDeposits [0-5]</code><br /> Set chance of surface tin spawning for each chunk column (default: 0.07)


=== Entities ===
=== /announce ===
<!--T:11-->
* <code>/announce [message]</code><br /> <translate><!--T:71--> Announce a server wide message in all chat groups.</translate>
*<code>/entity [spawn|countbytype|removebytype|countbyclass|removebyclass|listnearest|debug]</code><br /> Spawn, remove, and count entities (item drops, creatures, etc).
**<code>/entity spawn [entitytype]</code><br /> Spawn an entity by type. Valid types can be found in the survival mod assets folder /entities.
**<code>/entity countbytype [entitytype]</code><br /> Count how many entities of a given type exist. <code>entitytype</code> can use wildcards, eg <code>drifter-*</code> counts drifters of any type.
**<code>/entity removebytype [entitytype]</code><br /> Remove all entities of a given type. <code>entitytype</code> can use wildcards.
**<code>/entity countbyclass [entityclass]</code><br /> Count how many entities of a given class, such as <code>EntityItem</code> or <code>EntityAgent</code>, exist.
**<code>/entity removebyclass [entityclass]</code><br /> Remove all entities of a given class.
**<code>/entity listnearest [x y z] (ver-range) (hor-range)</code><br /> Show a summary of all nearby entities at given range. If x/y/z coords are not supplied, the current player position is taken
**<code>/entity debug [0|1]</code><br /> Enable entity debug mode, this will send continous debug information to all connected clients, which are displayed above the entity if the client used the command '''.clientConfig showEntitydebuginfo 1'''


=== Time ===
=== /stop ===
*<code>/time [set|get|speed]</code><br /> Time related functions
* <code>/stop</code><br /> <translate><!--T:73--> Stops the server.</translate>
**<code>/time</code><br /> Shows current time.
**<code>/time set [lunch|day|night|latenight|morning|latemorning|sunrise|sunset|afternoon|midnight|witchinghour]</code><br /> Sets the clock to the given time of day.
**<code>/time set [time]</code><br /> Sets the internal calendar to given time.
**<code>/time add [hours:minutes]</code><br /> Adds given hours and minutes to the internal calendar.
**<code>/time speed [0-9999]</code><br /> Shows or sets current game time speed (default 60).
**<code>/time hoursperday [0-9999]</code><br /> Shows or sets the current hours per day (default 24).


=== Weather ===
=== /autosavenow===
*<code>/weather [acp|lp|t|c|setw|set|seti|setirandom|setir]</code><br /> Controls weather and wind patterns. If <code>/weather</code> is run by itself it prints the current weather stats.
* <code>/autosavenow</code><br /> <translate> <!--T:118--> Autosaves the server.</translate>
**<code>/weather acp</code><br /> Toggles autochanging weather patterns.
**<code>/weather lp</code><br /> Lists all loaded weather patterns.
**<code>/weather t</code><br /> Transitions to a random weather pattern.
**<code>/weather c</code><br /> Quickly transitions to a random weather pattern.
**<code>/weather setw [lightbreeze|mediumbreeze|still|storm|strongbreeze]</code><br /> Sets the current wind pattern to the given wind pattern.
**<code>/weather [set|seti] [weatherpattern]</code><br /> Instantly sets the weather pattern to <code>weatherpattern</code>.
**<code>/weather setirandom</code><br /> Instantly sets the weather to a random weather pattern.
**<code>/weather setir [weatherpattern]</code><br /> Instantly sets the weather to <code>[weatherpattern]</code> only in the current region.


==Server control/configuration== <!--T:12-->
=== /list ===
*<code>/stats</code><br /> Show current server statistics ,tick rate, memory usage, etc..
*<code>/list [clients|banned|role|privileges]</code><br /> <translate><!--T:74--> Show various lists of information.</translate>
**<code>/list clients</code><br /> <translate><!--T:75--> Show current connected clients.</translate>
**<code>/list banned</code><br /> <translate><!--T:76--> Show current list of banned players.</translate>
**<code>/list role</code><br /> <translate><!--T:77--> Show list of all configured privilege roles.</translate>
**<code>/list privileges</code><br /> <translate><!--T:78--> Show list of all configured privileges.</translate>


*<code>/announce</code><br /> Announce a server wide message in all chat groups.
=== /allowlan ===
* <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>


*<code>/welcome</code><br />Sets the server's welcome message
== <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>


*<code>/stop</code><br />Stops the server
=== /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>/list [clients|banned|role|privileges]</code><br />Show various lists of infos
=== /genbackup ===
**<code>/list clients</code><br /> Show current connected clients</li>
* <code>/genbackup [filename]</code><br /> <translate><!--T:81--> Creates a full copy of the current save game and stores it in the backups folder. Can be run without pausing the server. If no filename is supplied, it will generate one based on the current date and time</translate>
**<code>/list banned</code><br /> Show current list of banned blayers</li>
**<code>/list role</code><br /> Show list of all configured privilege roles</li>
**<code>/list privileges</code><br /> Show list of all configured privileges</li>


=== /bir ===
* <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>/serverconfig [config]</code><br />Modify or display the server config <code>[config]</code>
=== /chunk ===
**<code>/serverconfig maxchunkradius [integer]</code><br />Displays the max chunk radius. Sets the max chunk radius to the integer passed, which is the highest chunk radius a player may load.
* <code>/chunk [cit|printmap|unload|forceload]</code><br /> <translate><!--T:83--> Chunk commands.</translate>
**<code>/serverconfig maxclients [integer]</code><br /> Displays the max clients. Sets the max number of connected clients to the integer passed.
* <code>/chunk cit</code><br /> <translate><!--T:84--> Current chunk generation info.</translate>
**<code>/serverconfig password [string]</code><br />Sets the server password that is required to connect to the server. It may not contain spaces.
* <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>/serverconfig nopassword</code><br />Removes the password protection.
* <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>/serverconfig antiabuse [Off|Basic|Pedantic]</code><br />Sets anti-abuse level, this protects against a range of malicious player operations, but is currently a work in progress.
* <code>/chunk forceload x1 z1 x2 z2</code><br /> <translate><!--T:87--> Tells the server to load given area and prevents unloading.</translate>
**<code>/serverconfig allowpvp [bool]</code><br />Control allowing players to combat each other.
**<code>/serverconfig onlywhitelist [bool]</code><br />Control allowing only whitelisted players to connect to the server.
**<code>/serverconfig entityspawning [bool]</code><br />Control global entity spawning. Disabling it will cause no creatures to spawn (default: on)
**<code>/serverconfig tickrate [10-100]</code><br />Shows or sets the server tick rate. A higher tickrate makes the server more responsive. A lower tick rate has the opposite effect.
**<code>/serverconfig blockTickSamplesPerChunk</code><br />Control how many random update ticks per chunk should be executed.
**<code>/serverconfig defaultSpawn [x y? z]</code><br />Shows or sets the default spawn point. <code>y</code> can be omitted to automatically use the surface position at given x/z location.
**<code>/serverconfig setspawnhere</code><br />Sets the default spawn point to where the player is currently standing


==Utility / Debug Tools== <!--T:13-->
=== /whenwillitstopraining ===
*<code>/bir [getid|getcode|remap]</code><br />Block id remapper tools. Useful to fix broken blocks after removing/updating custom blocks.
* <code>/whenwillitstopraining</code><br /> <translate><!--T:88--> Tells when the rain should stop.</translate>


*<code>/forceloadchunks x1 z1 x2 z2 [sendtoclient]</code><br />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.
=== /roomregdebug ===
Removed and replaced with <code>/debug room</code> as of version 1.19. These commands are kept for archival purposes.


*<code>/sendchunks [0|1]</code><br />Toggles whether to send any new chunks to the client. Forced chunks are still loaded.
* <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 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>


*<code>/chunkunload [0|1]</code><br /> 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.
=== /info ===
{{:List of server commands/info{{#translation:}}}}


*<code>/reloadmods</code><br />Reloads all server mods that support reloading.
=== /debug ===
{{:List of server commands/debug{{#translation:}}}}


*<code>/cit</code><br /> Current chunk generation info
=== /wgen ===
{{:List of server commands/wgen{{#translation:}}}}


*<code>/debug [logticks|tickhandlers|ci|cs|cr]</code><br />Various debug commands
=== /we ===
**<code>/debug logticks [milliseconds]</code><br />If a server tick required more then supplied milliseconds to process, a breakdown of that tick will be logged to the server-main.txt
<translate>
**<code>/debug tickhandlers</code><br /> Displays a summary of ticking blocks and entities are currently registered.
<!--T:100-->
**<code>/debug tickhandlers dump [gtblock|gtentity|dcblock|sdcblock|dcentity]</code><br /> Dumps a complete list of all tick/callback listeners to the server-debug.txt.
See {{ll|How_to_use_WorldEdit|How to use WorldEdit}}
**<code>/debug ci</code><br /> Display some information on the current chunk the player is in
</translate>
**<code>/debug cs</code><br /> Forcefully resends the current chunk the player is in
=== /macro ===
**<code>/debug cr</code><br /> Forcefully completely relights the current chunk the player is in
{{:List of server commands/macro{{#translation:}}}}
<translate>


*<code>/wgen</code> World generation tools. Some examples
== See also == <!--T:102-->
**<code>/wgen pos climate</code> Shows climate info at the current position
**<code>/wgen testmap climate</code> Generates a 512x512 example climate map as a png, saved where the game executables is.


*<code>/macro [addcmd|setcmd|syntax|desc|priv|save|delete|show|list]</code><br />Create a server side macro that can execute one or more commands
**<code>/macro addcmd [command]</code><br /> Add a command to a temporary macro.
**<code>/macro setcmd [command]</code><br /> Override a command to a temporary macro.
**<code>/macro [syntax]</code><br /> Sets the syntax help info displayed when using <code>/help [name]</code>.
**<code>/macro [desc]</code><br /> Sets the description text displayed when using <code>/help [name]</code>
**<code>/macro [priv]</code><br /> Sets the privilege required to execute this command, e.g. '''controlserver''' if only for admins or, '''build''' for any player with build rights.
**<code>/macro show</code><br />Shows the contents of the temporary macro currently being defined by above commands.
**<code>/macro save [name]</code><br />Saves the temporary macro defined by above command to given command name.
**<code>/macro list</code><br />Shows a list of all saved macros.
**<code>/macro show [name]</code><br />Shows the contents of a saved macro.
**<code>/macro delete [name]</code><br />Deletes a previously saved macro.
**<code>/macro discard [name]</code><br />Discards the temporary macro.


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

edits