--- layout: docs title: In Game Commands · Docs · MSM tab: docs docsitem: commands-in-game --- In Game Commands ================ These commands can also be called "server commands" but effect who can play, and the experience they have. The **server must be running** for these commands to be used. whitelist|wl on|off A whitelist is a set of names defining who is allowed onto a server. If a player attempts to logon to a server with a whitelist enabled, and their name is not on that whitelist, they cannot join and are told why. This command turns a whitelist on or off. Note the use of the `|` character means "or", for example `msm creativeserver whitelist on` is acceptable or `msm creativeserver wl off`, but not `msm creativeserver wl on off` or `msm creativeserver whitelist wl on` or `msm creativeserver whitelist on|off`. whitelist|wl list Lists the players who are on the whitelist. whitelist|wl add|remove Adds a player to, or removes them from the whitelist. blacklist|bl list Lists the players who are blacklisted. A blacklisted player cannot join a server, even if that person is also whitelisted. A difference from whitelisting is that in addition to players, an IP can be blacklisted. This command outputs both blacklisted players and IP address. blacklist|bl player add|remove Adds or removes a player from the blacklist. blacklist|bl ip add|remove Adds or removes an IP address from the blacklist. operator|op add|remove Adds or removes [operator status][op] for a player. Operators are also considered whitelisted. operator|op list Lists the players who are operators. gamemode|gm survival|creative Sets a player's game mode to either [survival][survival] or [creative][creative]. kick Forcibly disconnects a player. say Broadcast a message to all players which appears in bright pink, the invocation `msm creativeserver say Hello all` would produce: `[SERVER]: Hello all`. time set|add Set or increment the in-game time of day. The number must be between 0 and 24000. toggledownfall Toggles any rain or snow downfall. give [amount] [data] Gives an item to a player who is online right now. See [this wiki page][data-values] for an exhaustive list of item codes. The `amount` argument defaults to `1` if omitted, and the `data` argument is (as far as in known) used for applying damage to items which degrade with use. This damage value equates to the number of "uses" a tool has undergone. Remember a diamond pickaxe can take more damage than a stone pickaxe. xp Gives experience to a player who is online right now. The amount can be a positive or negative integer. Negative integers detract from the amount of experience a player has. save on|off Enables or disables "saving" of world changes to file. In-game players can still make changes to the world whilst saving is off, but rebooting the server would mean loosing those changes. Any changes made whilst saving is off are queued, meaning they are saved to file when saving is enabled again. save all Forces the writing of all pending unsaved changes to file. cmd Sends a command to the server, for example: `msm creativeserver cmd tp craftysaurus MrWizardBeef`. cmdlog Like the previous command, sends a string to the server to execute, but in addition outputs the server log to the screen afterwards. You can stop watching the log output by pressing Ctrl+C. [op]: http://www.minecraftwiki.net/wiki/Operator [survival]: http://www.minecraftwiki.net/wiki/Survival [creative]: http://www.minecraftwiki.net/wiki/Creative [data-values]: http://www.minecraftwiki.net/wiki/Data_values