Minecraft Server Console Commands: Java and Bedrock Guide

November 15, 2026 · Cheat Codes, Simulation and Sandbox
Quick answer: Minecraft server console commands are typed into the server window without a leading slash, for example op PlayerName, whitelist add PlayerName, save-all and stop. The console has full permission. Bedrock servers have a console too, with some different commands.

Minecraft server console commands run from the window or terminal of your dedicated server, not from in-game chat. On Java Edition you leave out the slash, and the console runs with the highest permission, so no operator status is needed. The Bedrock dedicated server also has a console.

Commands on this page were checked against the Minecraft Wiki command reference, the Hostinger and BisectHosting server guides and the Bedrock Dedicated Server wiki page. More games are on the page with all game cheat codes.

How to use the Minecraft server console

Start your server and type directly into its window. The Minecraft Wiki notes that commands entered in a Java server console are not preceded by a slash.

  1. Run the server jar (Java) or bedrock_server (Bedrock) so the console window or terminal stays open.
  2. On a rented server, open the host's game panel and use its console box. Hostinger and similar hosts offer one. Self-hosted VPS owners can connect by SSH or RDP and use the terminal.
  3. Type the command with no slash and press Enter.
  4. To run a command in game instead, press T and start with /. That needs operator status.

Pressing Tab in chat suggests the next part of a command. Players who also run Terraria servers can compare with the Terraria console commands.

Minecraft server console commands list

These server-management commands are usually run from the console. Operator level is for in-game use, since the console bypasses it.

Command What it does
op <player> Makes a player an operator. Default level is 4.
deop <player> Removes operator status.
whitelist add <player> Allows a player on the whitelist. Other options: remove, list, on, off, reload.
ban <player> [reason] Bans a player until pardoned.
pardon <player> Lifts a Java ban.
kick <player> [reason] Removes a player. They can rejoin at once.
save-all Writes unsaved chunks to disk. It is not a full backup.
save-off / save-on Turns automatic saving off or back on, often around a backup.
stop Saves and shuts the server down cleanly.
list Lists the players online.

Use stop rather than closing the window or killing Java, so the world is written correctly.

Gameplay commands you can run from the console

The console can also run the commands players use in chat.

Command What it does
gamemode <mode> [player] Sets survival, creative, adventure or spectator. From the console, name the player.
tp <player> <target or x y z> Teleports a player to another player or coordinates.
give <player> <item> [count] Gives an item. Use the full item ID.
time set <day|night|noon|midnight|number> Sets the time. Numbers run from 0 to 24000.
weather <clear|rain|thunder> [duration] Changes the weather. Duration is in seconds.
difficulty <peaceful|easy|normal|hard> Sets the server difficulty.
gamerule keepInventory true Turns on an example game rule. BisectHosting also gives gamerule playerSleepingPercentage 100.

Because the console has no player position, commands that depend on where you stand need a player name or coordinates. Other survival sandboxes with their own consoles include the RimWorld console commands and the Core Keeper console commands.

Minecraft Bedrock console commands

Bedrock dedicated servers accept commands in their console and, per the Minecraft Wiki, console commands are not blocked by the cheats setting. Many commands match Java, but some names differ.

  • Whitelist is called allowlist, with whitelist kept as an alias.
  • Bedrock uses /unban where Java uses pardon (Hostinger).
  • Bedrock adds wsserver, testfor and ? as help, and exclusive commands such as ability, camera and worldbuilder.
  • Bedrock's operator command is ops, an alias of permission.
  • The changesetting command (operator level 4 on Bedrock) changes server settings, including cheats.
  • In-game cheat commands need allow-cheats set to true in server.properties, then a restart.

The server stores players in allowlist.json and permissions in permissions.json. Java-only commands such as advancement, attribute and datapack will not run on Bedrock, so check help on your server.

Permission levels

Commands carry an operator level from 0 to 4. Level 0 covers commands like list and me for everyone. Level 3 covers op, ban and whitelist on Java, and level 4 covers stop and save-all. The console ignores these limits.

Why Minecraft server console commands are not working

  • Command rejected with a slash: in the Java console, drop the leading /.
  • Unknown command on Bedrock: it may be a Java-only command, or the name differs (allowlist, unban).
  • Cheat commands do nothing in game on Bedrock: set allow-cheats=true and restart, or use the console.
  • Player cannot use a command: they need operator status or the right level.
  • Player still joins after whitelist add: confirm the whitelist is turned on with whitelist on.

Minecraft server console commands FAQ

How do I use Minecraft server console commands?

Type them into the server window or host panel without a leading slash, for example op PlayerName. The console runs with full permission, so you do not need to be an operator first.

What are the most useful Minecraft server console commands?

op, whitelist add, ban, kick, save-all and stop cover most admin work. Gameplay commands like gamemode, time set, weather and gamerule also run from the console with a player name where needed.

What are Minecraft Bedrock console commands?

Bedrock dedicated servers have a console that accepts commands without being blocked by the cheats setting. Names differ in places: allowlist replaces whitelist, unban replaces pardon, and ops or permission handles operators.

How do I make myself operator from the console?

On Java, type op followed by your username in the server console. On Bedrock, use the permission command or edit permissions.json, then check your level.

Do I need a slash in the server console?

No on Java. The Minecraft Wiki says console commands are not preceded by a slash. In-game chat still needs the slash.

How do I save and stop the server safely?

Run save-all to write chunks to disk, then stop for a clean shutdown. Do not kill the Java process, because unsaved changes can be lost.

Sources

  • Minecraft Wiki – Commands
  • Minecraft Wiki – Bedrock Dedicated Server
  • Hostinger – Minecraft server commands
  • BisectHosting – Minecraft console commands for Java and Bedrock

Leave a Reply

Your email address will not be published. Required fields are marked *