Server Commands

Learn how to use the console and run commands on your Minecraft server.

Using the Console

The Console is where you run server commands. You can access it from your server dashboard:

  1. Go to panel.modready.gg
  2. Click on your server
  3. You'll see the Console on the main page
  4. Type commands in the input field at the bottom and press Enter
Console vs In-Game

When running commands from the console, you don't need to type the / at the beginning. For example:

  • Console: op PlayerName
  • In-game: /op PlayerName

How to Make Yourself OP (Operator)

OP (Operator) gives you admin permissions on the server. This is usually the first thing you need to do!

Important

You cannot OP yourself from in-game unless you're already OP. You must use the console to give yourself OP for the first time.

Step by Step:

  1. Make sure your server is running
  2. Go to the Console in your panel
  3. Type: op YourUsername (replace with your exact Minecraft username)
  4. Press Enter
  5. You should see: Made YourUsername a server operator
op Steve

Output: Made Steve a server operator
Username is Case-Sensitive!

Make sure you type your username exactly as it appears in Minecraft. Steve and steve are different!

Remove OP

To remove operator status from a player:

deop PlayerName

Gamemode Commands

Change your gamemode or another player's gamemode:

Command Description
gamemode survival PlayerName Set player to Survival mode
gamemode creative PlayerName Set player to Creative mode
gamemode adventure PlayerName Set player to Adventure mode
gamemode spectator PlayerName Set player to Spectator mode

You can also use shorthand: gamemode 0 (survival), gamemode 1 (creative), gamemode 2 (adventure), gamemode 3 (spectator)

Default Gamemode

To change the default gamemode for new players, edit server.properties:

gamemode=survival

Options: survival, creative, adventure, spectator

Whitelist Commands

A whitelist restricts who can join your server to only approved players.

Command Description
whitelist on Enable the whitelist
whitelist off Disable the whitelist
whitelist add PlayerName Add a player to the whitelist
whitelist remove PlayerName Remove a player from the whitelist
whitelist list Show all whitelisted players
Make it Permanent

To keep whitelist enabled after restart, set white-list=true in your server.properties file.

Moderation Commands

Kick & Ban

Command Description
kick PlayerName Kick a player (they can rejoin)
kick PlayerName reason Kick with a message
ban PlayerName Ban a player permanently
ban PlayerName reason Ban with a reason
pardon PlayerName Unban a player
banlist Show all banned players

Ban by IP

Command Description
ban-ip PlayerName Ban player's IP address
ban-ip 123.456.789.0 Ban specific IP address
pardon-ip 123.456.789.0 Unban an IP address

Teleport Commands

Command Description
tp Player1 Player2 Teleport Player1 to Player2
tp PlayerName 100 64 200 Teleport to coordinates (X Y Z)
tp @a 0 100 0 Teleport ALL players to coordinates

Time & Weather Commands

Command Description
time set day Set time to day (1000 ticks)
time set night Set time to night (13000 ticks)
time set noon Set time to noon (6000 ticks)
weather clear Clear weather
weather rain Make it rain
weather thunder Thunderstorm

Give Items

Give items to players:

give PlayerName minecraft:diamond 64

Gives 64 diamonds to PlayerName

Common examples:

Command Description
give Steve minecraft:diamond_sword 1 Diamond sword
give Steve minecraft:elytra 1 Elytra
give Steve minecraft:netherite_pickaxe 1 Netherite pickaxe
give @a minecraft:cooked_beef 64 Give steak to ALL players

Gamerules

Gamerules change how the game works on your server:

Command Description
gamerule keepInventory true Keep items when you die
gamerule doDaylightCycle false Stop time from changing
gamerule doWeatherCycle false Stop weather from changing
gamerule mobGriefing false Stop creepers/endermen from breaking blocks
gamerule doFireTick false Fire won't spread
gamerule playersSleepingPercentage 1 Only 1 player needs to sleep
gamerule showDeathMessages false Hide death messages

Difficulty & World Settings

Command Description
difficulty peaceful No monsters, health regenerates
difficulty easy Monsters deal less damage
difficulty normal Standard difficulty
difficulty hard Monsters deal more damage, zombies break doors
setworldspawn Set world spawn to your location (in-game)
setworldspawn 100 64 200 Set world spawn to coordinates

Target Selectors

Use these shortcuts to target multiple players:

Selector Description Example
@a All players give @a minecraft:diamond 1
@p Nearest player tp @p 0 100 0
@r Random player give @r minecraft:elytra 1
@e All entities (including mobs) kill @e[type=zombie]
@s Yourself (in-game only) give @s minecraft:diamond 64

Other Useful Commands

Command Description
list Show all online players
say Hello everyone! Broadcast a message to all players
tell PlayerName secret message Private message to a player
seed Show the world seed
kill PlayerName Kill a player
stop Stop the server (saves and shuts down)
save-all Save the world immediately

Quick Reference Card

Most Common Commands
op PlayerName Give admin
whitelist add PlayerName Allow player
gamemode creative PlayerName Creative mode
gamerule keepInventory true Keep items on death
time set day Make it daytime

Need help? Join our Discord for support!