Changes between Version 22 and Version 23 of Console Commands
- Timestamp:
- Apr 18, 2015, 3:31:42 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Console Commands
v22 v23 9 9 == admins.xml and in game console == 10 10 11 === Unmodified server code === 12 Each command has to have a permission level set in ''admins.xml'' and the player who wants to use the command must have the appropriate level, i.e. the permission level of the player must be lower or equal to the permission level of the command to be executed. All commands that are not defined in the ''admins.xml'' can not be executed at all. 11 * Any player not given a specific permission level in ''admins.xml'' will have a default level of 1000 12 * A command with permission level of >=1000 can be executed by '''any''' player that is either defined with a permission level of <=1000, even those not listed in the ''admins.xml'' at all 13 * Any command not having an permission level set in ''admins.xml'' will automatically have a permission level of 0 14 * Commands defined in the ''admins.xml'' affect both short and long versions 13 15 14 16 '''Example:''' … … 38 40 * ''mem'' -> ok 39 41 * ''admin'' -> ok 40 * ''sg'' (which is the short version of ''setgameprefs'') -> denied (not in list exactly like this)41 * ''shutdown'' -> denied (not in list at all)42 * Player with ID 987654 (permission level 4):43 * ''dm'' -> denied (dm requires permission level of 3 or less)44 * ''mem'' -> ok45 * ''kick'' -> ok46 * ''le'' -> ok47 * Any other player with no defined permission level:48 * ''le'' -> denied (permission level 1000 is just an arbitrary number)49 * any other command -> denied50 51 52 === Running a server with the [[Server fixes]] installed ===53 54 Mostly the same applies as without the fixes. Changes are:55 * A command with permission level of >=1000 can be executed by '''any''' player, even those not listed in the ''admins.xml'' at all56 * Any command not having an permission level set in ''admins.xml'' will automatically have a permission level of 057 * Commands defined in the ''admins.xml'' affect both short and long versions58 59 '''Example:'''60 Considering the same ''admins.xml'' as before:61 * Player with ID 123456 (permission level 0):62 * ''dm'' -> ok63 * ''mem'' -> ok64 * ''admin'' -> ok65 42 * ''sg'' (which is the short version of ''setgameprefs'') -> '''ok''' (''setgameprefs'' is defined so it also affects ''sg'') 66 43 * ''shutdown'' -> '''ok''' (implicitly defined as permission level 0) … … 80 57 These are: 81 58 * admin: Manage the list of players which should be admins 82 * mod: Same for moderators. As it seems there currently is no difference between moderators and admins. Only the permission level set is of interest.83 59 * cp: Manage command permission level definitions (in the XML those are the ''permissions''->''permission''-elements) 84 60 * whitelist: Whitelisted players. '''Note:''' if there is at least one whitelisted player '''only''' players on this list can join the server whatsoever. 85 61 * ban: Ban a player (XML: ''blacklist'' elements) 86 62 87 All but the ''ban'' commandhave three subcommands given as their first parameter:88 * add: Add a player tothe given list63 All commands have three subcommands given as their first parameter: 64 * add: Add/update a player/command to/on the given list 89 65 * remove: Remove a player from the given list 90 * update: Set a new permission level on the given list for the given player66 * list: List all currently defined entries 91 67 92 68 … … 96 72 || admin add || <playername> <permissionLevel> || Add a player as admin with the given permissionlevel || 97 73 || admin remove || <playername> || Remove the admin rights of a player || 98 || admin update || <playername> <permissionLevel> || Set a new permissionlevel for a player who is already an admin ||99 74 || aiddebug || || Toggles AIDirector debug output || 100 75 || ban || <playername> <duration> <unit> || Bans user for period specified by ''duration'' and ''unit''. ''Unit'' can be anything of: ''minutes'', ''hours'', ''days'', ''weeks'', ''months'', ''years'' || … … 104 79 || cp add || <command> <permissionLevel> || Add the definition of a permission level for a given command || 105 80 || cp remove || <command> || Remove the command permission level definition || 106 || cp update || <playername> <permissionLevel> || Set a new permissionlevel for an already defined command || 107 || creativemenu, cm || <0/1> || Disable/Enable the creative menu for the current server session (Added by the [[Server fixes]]) || 81 || creativemenu, cm || <0/1> || Disable/Enable the creative menu for the local player || 108 82 || debuff || <buffName> || Removes a buff from the local player || 109 83 || debugmenu, dm || || Enables/disables debug menu for a client || … … 111 85 || gameover, go || || Sets the game state to GameOver || 112 86 || generatemap, gm || || Generates a 2D map image of the current world. || 113 || getgamepref, gg || [<match>] || Get all preferences that contain the given string or all preferences if no string is given (Added by the [[Server fixes]])||114 || gettime, gt || || Retrieves current ingame time (Added by the [[Server fixes]])||87 || getgamepref, gg || [<match>] || Get all preferences that contain the given string or all preferences if no string is given || 88 || gettime, gt || || Retrieves current ingame time || 115 89 || give || <playername|entityid> <itemname> <amount> || Give an item to a player (check for possible item names with ''listitems'') (Added by the [[Server fixes]]) || 116 90 || kick || <playername> [<reason>] || Kicks user with optional reason || 117 || kill || <playername or entityId> || Kill the given player (Added by the [[Server fixes]])||91 || kill || <playername or entityId> || Kill the given player || 118 92 || listents, le || || List all entities || 119 93 || listitems, li || <searchString> || List all items that can be given with ''give'' that match contain the ''searchString'' (Added by the [[Server fixes]]) || … … 121 95 || listlandprotection, llp || nearby [<entityid>] || ^INGAME ONLY^ Lists all land protection blocks and their owners that are placed near the current player. Default distance is 32 in both x and z. Can optionally be passed another distance (Added by the [[Server fixes]]) || 122 96 || listlandprotection, llp || [summary | <steamid> | <entityid> | <playername>] || Lists all land protection blocks and their owners. If ''summary'' is passed it only shows the number of keystones per player, if any of the other is passed it only shows the keystones of the given player (Added by the [[Server fixes]]) || 123 || listplayersextended, lpe || || Lists all players with extended attributes (Added by the [[Server fixes]]) ||124 97 || listplayers, lp || || List all players || 125 98 || listthreads, lt || || Lists all game threads || 126 99 || mem || || Print information about current memory consumption of the server and call garbage collector || 127 || mod add || <playername> <permissionLevel> || Add a player as moderator with the given permissionlevel ||128 || mod remove || <playername> || Remove the moderator rights of a player ||129 || mod update || <playername> <permissionLevel> || Set a new permissionlevel for a player who is already a moderator ||130 100 || removelandprotection, rlp || <steamid> OR <x> <y> <z> || Removes the given land protection block or all blocks of a given player. Note that the chunk which contains the keystones has to be loaded at that moment (i.e. get close to the keystones before executing this command) (Added by the [[Server fixes]]) || 131 101 || rendermap, rm || || Render the map as far as it was visited by players (Added by the [[Server fixes]]) '''READ INFORMATION ON THIS ON THE SERVER FIXES PAGE! || … … 135 105 || sayplayer, pm || <playerName or entityId> <message> || Send a message to a single player (Added by the [[Server fixes]]) || 136 106 || 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! || 137 || settimereal, str || <days> <hours> <minutes> || Set current ingame time (Added by the [[Server fixes]]) || 138 || 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 || 107 || settime, st || [<time>] or <day> <hour> <minute> || 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 a positive integer value, specifying the time relative to Day 1, 08:00 || 139 108 || showchunkdata, sc || || Shows some data of the current chunk || 140 109 || showinventory, si || <steamid or playerName or entityId> || List inventory of the given player (Added by the [[Server fixes]]) || … … 148 117 || spawnwanderinghorde || || Spawns a wandering horde of zombies || 149 118 || teleportplayer, tele || <steamid or playerName or entityId> {<steamid or playerName or entityId> OR <x> <y> <z>} || Teleport the player to the given location or to the given player (Added by the [[Server fixes]]) || 150 || unban || <steamid> || Remove the ban for the given SteamID (Added by the [[Server fixes]]) || 151 || version || || Get the currently running version of the server fixes (Added by the [[Server fixes]]) || 119 || version || || Get the currently running version of the game and loaded mods || 152 120 || whitelist add || <playername> <permissionLevel> || Add a player to the whitelist with the given level || 153 121 || whitelist remove || <playername> || Remove a player from the whitelist || 154 || whitelist update || <playername> <permissionLevel> || Update the permission level of a player on the whitelist ||