Minecraft Server Console Commands Cheat Sheet
Guide

Minecraft Server Console Commands Cheat Sheet

The complete reference for every Minecraft server console command — player management, world settings, game rules, performance debugging, and more. Organized by category with real-world examples.

Swelis TeamMarch 9, 202611 min read

Every Minecraft server admin needs a solid command reference. Whether you are running a small SMP or managing a large community server, knowing the right console commands saves time and keeps things running smoothly.

This cheat sheet covers every command you will regularly use — organized by category so you can find what you need fast. All commands work directly in your server console without the / prefix.


Player Management

The commands you will use most. Managing who is on your server and what they can do.

CommandWhat It DoesExample
listShow online players and countlist
kick <player> [reason]Remove a player from the serverkick Steve Griefing
ban <player> [reason]Permanently ban a playerban Steve Griefing spawn
ban-ip <ip>Ban an IP addressban-ip 192.168.1.100
pardon <player>Unban a playerpardon Steve
pardon-ip <ip>Unban an IP addresspardon-ip 192.168.1.100
banlistShow all banned playersbanlist
whitelist add <player>Add player to whitelistwhitelist add Steve
whitelist remove <player>Remove from whitelistwhitelist remove Steve
whitelist listShow whitelisted playerswhitelist list
whitelist onEnable whitelistwhitelist on
whitelist offDisable whitelistwhitelist off

Tip: Use whitelist on during maintenance or when testing new plugins. It keeps random joins out while you work.


Operator & Permissions

Control who has admin powers on your server.

CommandWhat It DoesExample
op <player>Give operator (admin) statusop Steve
deop <player>Remove operator statusdeop Steve

Important: Operators have full access to every command. For finer control, use a permissions plugin like LuckPerms — it lets you assign specific permissions per player or group without giving full OP access.


World & Gameplay

Commands that affect the world itself — time, weather, difficulty, and game rules.

Time

CommandWhat It DoesExample
time set daySet to daytime (1000 ticks)time set day
time set nightSet to nighttime (13000 ticks)time set night
time set noonSet to noon (6000 ticks)time set noon
time set midnightSet to midnight (18000 ticks)time set midnight
time set <ticks>Set to exact tick valuetime set 0
time add <ticks>Advance time by tickstime add 1000
time query daytimeShow current time of daytime query daytime

Weather

CommandWhat It DoesExample
weather clearClear skiesweather clear
weather clear <seconds>Clear for a durationweather clear 600
weather rainStart rainweather rain
weather thunderStart thunderstormweather thunder

Difficulty

CommandWhat It Does
difficulty peacefulNo hostile mobs, health regenerates fast
difficulty easyHostile mobs deal less damage
difficulty normalStandard difficulty
difficulty hardHostile mobs deal more damage, hunger can kill

Game Rules

Game rules control core mechanics. These are the ones you will actually use:

CommandWhat It DoesDefault
gamerule keepInventory truePlayers keep items on deathfalse
gamerule doDaylightCycle falseFreeze timetrue
gamerule doWeatherCycle falseFreeze weathertrue
gamerule doMobSpawning falseDisable mob spawningtrue
gamerule mobGriefing falseMobs cannot destroy blocks (creepers, endermen)true
gamerule doFireTick falseFire does not spreadtrue
gamerule pvp falseDisable player vs playertrue
gamerule announceAdvancements falseHide advancement messages in chattrue
gamerule playersSleepingPercentage 50% of players needed to skip night100
gamerule spawnRadius 10Spawn area radius in blocks10
gamerule maxEntityCramming 24Max entities in one block24
gamerule randomTickSpeed 3Crop/plant growth speed3

Pro tip for SMPs: gamerule playersSleepingPercentage 50 is a must-have. No more waiting for that one AFK player to sleep. Check our SMP server guide for more essentials.


Teleportation

Move players around the world instantly.

CommandWhat It DoesExample
tp <player> <x> <y> <z>Teleport player to coordinatestp Steve 100 64 -200
tp <player> <target>Teleport player to another playertp Steve Alex
tp @a <x> <y> <z>Teleport all players to coordinatestp @a 0 100 0
tp @r <x> <y> <z>Teleport a random playertp @r 0 64 0

Target Selectors

These work in any command that accepts a player argument:

SelectorMeaning
@aAll players
@rRandom player
@pNearest player
@eAll entities (including mobs)
@sThe command executor

Giving Items & Effects

CommandWhat It DoesExample
give <player> <item> [amount]Give items to a playergive Steve diamond 64
clear <player>Clear all items from inventoryclear Steve
clear <player> <item>Clear specific itemclear Steve diamond
effect give <player> <effect> <seconds> <level>Apply a status effecteffect give Steve speed 60 2
effect clear <player>Remove all effectseffect clear Steve
enchant <player> <enchantment> <level>Enchant held itemenchant Steve sharpness 5
xp add <player> <amount>Give XP pointsxp add Steve 1000
xp add <player> <amount> levelsGive XP levelsxp add Steve 30 levels

Game Mode

CommandWhat It Does
gamemode survival <player>Switch to survival
gamemode creative <player>Switch to creative
gamemode adventure <player>Switch to adventure (cannot break blocks)
gamemode spectator <player>Switch to spectator (fly through blocks, invisible)
defaultgamemode survivalSet the default for new players

Server Management

Commands for controlling the server itself.

CommandWhat It DoesNotes
stopShut down the server gracefullySaves all data before stopping
save-allForce-save all worldsRun before risky operations
save-offDisable auto-savingUse during backups, then save-on
save-onRe-enable auto-savingAlways run after save-off
reload confirmReload server config and pluginsMay cause issues — restart is safer
seedDisplay the world seedUseful for sharing with builders

Warning: Avoid reload confirm on production servers. It can cause memory leaks and plugin conflicts. A clean stop and restart is always safer. On Swelis, just hit the restart button in your dashboard.


World Border

Control the playable area of your world. Essential for SMPs that want to keep players close together.

CommandWhat It DoesExample
worldborder set <size>Set border diameter in blocksworldborder set 10000
worldborder set <size> <seconds>Gradually resize over timeworldborder set 5000 300
worldborder center <x> <z>Set border centerworldborder center 0 0
worldborder getShow current border sizeworldborder get
worldborder add <blocks>Expand borderworldborder add 1000
worldborder add <blocks> <seconds>Expand graduallyworldborder add 1000 60
worldborder damage amount <dps>Set damage outside borderworldborder damage amount 0.2
worldborder warning distance <blocks>Red vignette distanceworldborder warning distance 10

Communication

CommandWhat It DoesExample
say <message>Broadcast message as [Server]say Server restarting in 5 minutes
tell <player> <message>Private message to a playertell Steve Check your inventory
msg <player> <message>Same as tellmsg Steve Hey!
title <player> title {"text":"Hello"}Show title text on screentitle @a title {"text":"Welcome!"}
title <player> subtitle {"text":"Sub"}Show subtitle below titletitle @a subtitle {"text":"Have fun"}
title <player> actionbar {"text":"Hi"}Show text in action bartitle @a actionbar {"text":"PvP enabled"}

Performance & Debugging

When things feel slow, these commands help you figure out why. For a deeper dive into lag, check out How to Fix Minecraft Server Lag.

CommandWhat It DoesNotes
tpsShow ticks per second (PaperMC)20 = perfect, below 18 = lag
timings on / timings pasteGenerate performance report (Paper)Shows exactly what is eating TPS
spark profilerAdvanced profiling (Spark plugin)More detailed than timings
kill @e[type=!player]Kill all non-player entitiesNuclear option for entity lag
kill @e[type=item]Clear dropped itemsHelps with item entity lag
forceload add <x> <z>Keep a chunk loaded permanentlyUse sparingly — adds load
forceload remove <x> <z>Stop force-loading a chunkforceload remove 0 0

Quick Lag Diagnosis

  1. Run tps — if below 18, you have a problem
  2. Run timings on, wait 5 minutes, then timings paste
  3. Check the report for the biggest time consumers
  4. Common fixes: reduce view distance, limit entity counts, optimize your settings

Scoreboard (For Minigames & Events)

Scoreboards are powerful for events, custom games, and player stats.

CommandWhat It DoesExample
scoreboard objectives add <name> <criteria>Create objectivescoreboard objectives add kills playerKillCount
scoreboard objectives setdisplay sidebar <name>Show on sidebarscoreboard objectives setdisplay sidebar kills
scoreboard players set <player> <objective> <value>Set a scorescoreboard players set Steve kills 5
scoreboard players add <player> <objective> <value>Add to a scorescoreboard players add Steve kills 1
scoreboard objectives remove <name>Delete objectivescoreboard objectives remove kills

Common Criteria

CriteriaTracks
dummyManual scores only (for custom systems)
playerKillCountPlayer kills
totalKillCountAll kills (mobs + players)
deathCountDeaths
healthCurrent health

Data Packs & Structure Commands

CommandWhat It DoesExample
datapack listShow loaded data packsdatapack list
datapack enable <name>Enable a data packdatapack enable "file/my_pack"
datapack disable <name>Disable a data packdatapack disable "file/my_pack"
locate structure <type>Find nearest structurelocate structure village
locate biome <type>Find nearest biomelocate biome cherry_grove

Essential Command Combos

Here are some real-world scenarios and the commands to handle them:

Setting Up a New SMP

gamerule playersSleepingPercentage 50
gamerule keepInventory false
difficulty normal
worldborder set 20000
worldborder center 0 0
whitelist on

Emergency Lag Fix

save-all
kill @e[type=item]
kill @e[type=!player,type=!villager]
gamerule randomTickSpeed 1

Locking Down for Maintenance

say Server maintenance starting in 5 minutes!
whitelist on
kick @a Server maintenance — back soon!
save-all

Setting Up a Build Event

gamemode creative @a
gamerule doDaylightCycle false
time set noon
weather clear 999999
gamerule doMobSpawning false
worldborder set 500
worldborder center 100 200

Quick Reference Card

The 10 commands every admin types daily:

#CommandPurpose
1listWho is online?
2tpsIs the server lagging?
3kick <player> <reason>Remove a troublemaker
4ban <player> <reason>Permanently remove a troublemaker
5tp <player> <x> <y> <z>Teleport someone
6gamemode creative <player>Toggle creative for a builder
7time set daySkip the night
8weather clearStop the rain
9say <message>Announce something
10save-allSave everything right now

Ready to Start Your Adventure?

Join thousands of players already enjoying lag-free Minecraft hosting.

Launch Your Server
Swelis Hosting

Premium Minecraft server hosting starting at €1.50/GB RAM. Experience lightning-fast performance, 24/7 support, and 99.9% uptime guarantee.

© 2026 Swelis International e.U. All rights reserved.