Minecraft

Minecraft Server Console: How to Open and Use It

The console is where you run commands with full rights and read what the server is doing. Here is how to open it, what to type and how to read the log.

TheGameHosting Team 6 min read
Use the Minecraft Server Console
Background: Minecraft © Mojang Studios

The Minecraft server console is the text window where the server prints its log and where you type commands with full operator rights. On TheGameHosting you open it from the Console tab of your server; on your own PC it is the window or terminal where the server runs. Commands go in without a slash (op Steve, not /op Steve), and the log above tells you if they worked. This guide covers opening it, the commands you will use most and how to read errors.

What the server console does

The console is the server's own command line. Anything you type there runs as the server itself, with the highest permission level, so it works even when no operator is online. It is also the live log: every player join, chat message, warning and crash shows up there first.

You need the console for three things:

  1. Admin commands without being in the game: op, whitelist, ban, stop.
  2. Reading errors when the server will not start or a plugin fails.
  3. Safe shutdowns. stop saves the world before the server closes.

How to open the Minecraft server console

  1. Log in to the panel and click your server.
  2. Choose Console in the menu. The live log appears with an input box at the bottom.
  3. If the server is off, click Start. The log shows the startup and ends with a line like Done (5.123s)! For help, type "help".
  4. Click the input box, type a command without a slash, for example list, and press Enter.
  5. Read the reply in the log. list answers with the players online.

On your own PC the console is the window that opens when you start the server. If you launch it with nogui (for example java -Xmx2G -jar server.jar nogui), the console is the terminal itself. Without nogui, vanilla opens a small window with a log, a player list and an input box at the bottom.

Console commands you will use most

CommandWhat it does
listShows who is online
say HelloSends a message to everyone as [Server]
op Name / deop NameGives or removes operator
whitelist add NameAdds a player to the whitelist
kick Name reasonRemoves a player from the server
ban Name reason / pardon NameBans or unbans a player
gamemode creative NameChanges a player's game mode
tp Name x y zTeleports a player
time set day / weather clearChanges time or weather
save-allSaves the world to disk now
stopSaves and shuts the server down

The console is not a player, so commands that act on "you" need a name: tp Steve 0 100 0 works, but tp 0 100 0 or gamemode creative with no name fail, because there is no player to move. For full guides on two of these, see how to OP yourself on a Minecraft server and Minecraft server whitelist.

How to read the console log

Each line starts with the time, the thread and a level:

Server console
[14:02:11 INFO]: Steve joined the game
[14:05:47 WARN]: Can't keep up! Is the server overloaded? Running 2400ms or 48 ticks behind
[14:06:03 ERROR]: Could not load 'plugins/OldPlugin.jar' in folder 'plugins'
  1. INFO is normal activity: joins, chat, commands.
  2. WARN is something to watch. "Can't keep up!" means the server fell behind; one line after startup is normal, many lines in a row point to lag. See Minecraft server lag fix.
  3. ERROR is something that failed. Read the lines right under it: the cause is often named there, such as a plugin made for another version.

Everything in the console is also saved in logs/latest.log. Older logs are packed as .log.gz files in the same logs folder. On TheGameHosting you can open them from Files if you need a log from yesterday.

Stop, Restart and Kill

The panel has power buttons next to the console. Stop sends the stop command, so the world is saved. Restart stops and starts again. Kill ends the process at once, without saving; use it only when the server is frozen and does not respond to Stop, because chunks changed since the last save can be lost.

To restart every night without being there, create a task in Schedules that sends a say warning, then a restart. Before big changes, make a copy in Backups.

Giving console access to someone else

Do not share your account password. In the Users tab you can invite a co-admin by email and pick what they can do, including using the console, without access to billing.

Common console problems

  1. "Unknown or incomplete command". A typo, or the command belongs to a plugin that did not load. Type help or check the startup log for the plugin.
  2. You typed and nothing happened. The server is off or still starting. Wait for the Done line.
  3. An error saying a player is required. You used a command that acts on yourself, and the console is not a player. Add the player name.
  4. The log stops at the same line every start. That is the last step before the crash. Our guide on a Minecraft server not starting covers the usual causes.
  5. Slash or no slash? Vanilla accepts a leading slash in the console too, but it is not needed. In game chat the slash is required.

A console that is always one click away

When the server runs on your PC, the console only exists while that window is open. On TheGameHosting the Console is in the panel, so you can check the log and run commands from any browser, even your phone, while the server keeps running 24/7. It runs on AMD 9950X or 7950X3D CPUs with NVMe storage and DDoS protection on every plan, and support answers 24/7 in English and Spanish if a log line makes no sense.

Plans start at 2 GB for $1.90 USD per month, ready about 60 seconds after payment. Choose a size on Pricing or see the details of our Minecraft server hosting.

FAQ

How do I get into the console of a Minecraft server?

On a hosted server, open the panel and choose Console. On your own PC, the console is the window or terminal where the server is running.

Do console commands need a slash?

No. In the console you type op Steve or whitelist on without a slash. In game chat the slash is required.

Where is the Minecraft server console log saved?

In logs/latest.log in the server folder. Older logs are compressed as .log.gz files in the same folder.

What is the difference between Stop and Kill?

Stop runs the stop command and saves the world. Kill ends the process immediately without saving, so use it only when the server is frozen.

Hosting for this game

Written by TheGameHosting Team, the people who run our servers in Dallas and Amsterdam and answer your tickets.

All posts