What are Server Commands?

Server commands let you adjust the server or change gameplay elements while you are in-game. They can be performed by typing "/" followed by the command and its new setting. Check the table below for a list of commonly-used commands.

Command Function
/gamemode Change to play in creative, survival, spectator, or adventure. Press space after typing the command and enter your preferred gamemode.
/op <u> Where <u> is a player's username, grants that user host privileges.
/time set Changes the time of day on the server. Add a space after the command and type "day" for sunrise, "noon" for noon, "dusk" for sunset, and "night" for night. You can also type a number for more specific times, ranging from 1000-24000.
/weather Changes the weather on the server. Add a space and type "clear" to stop rain, "rain" to start rain, or "storm" to start a storm.
/gamerule mobGriefing Add a space and type "true" to allow mobs like creepers to destroy blocks. Type "false" to disable this ability.
/tp <u1> <u2> Where <u1> <u2> stand in for two usernames, teleports <u1> to <u2>'s location
/difficulty Allows the player to set the difficulty level of the world. The options are peaceful, easy, normal, or hard.
/whitelist on Enables a whitelist on the server, meaning that only people on the list can connect and play. This helps protect the server from malicious actors scanning the net for Minecraft servers to destroy players' builds on, but can make it more difficult for your friends to connect.
/whitelist add <u> Where <u> is a player's username, adds that user to the whitelist, letting them connect to the server if the whitelist is enabled.

Server Commands In Action

Below show how some of the server commands listed above change the game.