wiki:Console Commands

Version 1 (modified by Alloc, 6 years ago) (diff)


Command Parameters Description
admin add <playername> <permissionLevel> Add a player as admin with the given permissionlevel
admin remove <playername> Remove the admin rights of a player
admin update <playername> <permissionLevel> Set a new permissionlevel for a player who is already an admin
aiddebug Toggles AIDirector debug output
ban <playername> <duration> <unit> Bans user for period specified by duration and unit. Unit can be anything of: minutes, hours, days, weeks, months, years
chunkcache, cc Shows all loaded chunks in cache
cp add <command> <permissionLevel> Add the definition of a permission level for a given command
cp remove <command> Remove the command permission level definition
cp update <playername> <permissionLevel> Set a new permissionlevel for an already defined command
debugmenu, dm Enables/disables debug menu for a client
enablescope, es Toggle debug scope
gameover, go Sets the game state to GameOver
getgamepref, gg [<match>] Get all preferences that contain the given string or all preferences if no string is given (Added by the Server fixes)
gettime, gt Retrieves current ingame time (Added by the Server fixes)
kick <playername> [<reason>] Kicks user with optional reason
listents, le List all entities
listplayersextended, lpe Lists all players with extended attributes (Added by the Server fixes)
listplayers, lp List all players
listthreads, lt Lists all game threads
mem Print information about current memory consumption of the server and call garbage collector
mod add <playername> <permissionLevel> Add a player as moderator with the given permissionlevel
mod remove <playername> Remove the moderator rights of a player
mod update <playername> <permissionLevel> Set a new permissionlevel for a player who is already a moderator
saveworld, sa Saves the world manually
say <message> Sends a message to all connected clients
sayplayer, pm <destPlayerName or entity id> <message> Send a message to a single player (Added by the Server fixes)
setgamepref, sg [<prefName> [<value>]] Retrieves (if no value given) or sets a game preference. If both parameters are left out all preferences are shown. Does not work with most settings!
settimereal, str <days> <hours> <minutes> Set current ingame time (Added by the Server fixes)
settime, st [<time>] Set the time. If no time is given it will set to Day 1, 08:00. time can be "day" which will set to Day 1, 16:00, or "night" which will set it to Day 2, 05:00. Or it can be an integer value greater or equal to -8000, specifying the time relative to Day 1, 16:00
showchunkdata, sc Shows some data of the current chunk
showinventory, si <playerName or entity id> List inventory of the given player
shownexthordetime Displays the wandering horde time
shutdown Shut down the server
sounddebug Toggles SoundManager debug output
spawnairdrop Spawns an air drop
spawnentity, se [<playerId> <entityId>] Spawn an entity of type entityId near the player with playerId. To get a list of all player/entity IDs run without any parameter.
spawnsupplycrate Spawns a supply crate where the player is (only works for client run servers / singleplayer)
spawnwanderinghorde Spawns a wandering horde of zombies
whitelist add <playername> <permissionLevel> Add a player to the whitelist with the given level
whitelist remove <playername> Remove a player from the whitelist
whitelist update <playername> <permissionLevel> Update the permission level of a player on the whitelist