Server console and first admin steps

The console is where you give the server commands: make yourself operator, switch on the whitelist, stop the server. This guide shows how to reach it, and the first commands to type.

Type commands without a slash in the console: op Steve, not /op Steve. The console may use every command.

Open the console

How you run Soulshale Where the console is
Docker Compose docker compose attach soulshale
docker run docker attach soulshale (start with -it, see below)
Pterodactyl or Pelican The panel's Console tab. Type into the field below the log.
Windows, Linux, macOS program The window or terminal you started it in.

Docker

The container needs an input and a terminal. In Compose, the example from Quick start with Docker has both lines already:

services:
  soulshale:
    container_name: soulshale
    stdin_open: true     # keeps the console input open
    tty: true            # gives the log its colours

Open it:

docker compose attach soulshale

With plain docker run, add -it when you start:

docker run -d -it --name soulshale -p 25565:25565 -v soulshale-data:/data \
    -e SOULSHALE_EULA=true --stop-timeout 60 thoenehannes/soulshale:beta
docker attach soulshale

You should see: the server log, with colours. Type help and press Enter. In a container the console reads plain lines: there is no > prompt and no history with the arrow keys.

Careful: Ctrl+C stops the server, and so does Ctrl+D. This is the same as the command stop. To leave the console and keep the server running, press Ctrl+P, then Ctrl+Q.

Good to know:

  • The image has no shell. docker exec -it soulshale sh does not work. Use attach, or RCON below.
  • Only want to read the log? docker compose logs -f (or docker logs -f soulshale). Ctrl+C leaves the log and the server keeps running.
  • Without stdin_open and tty, the server still runs, but you cannot type into it.

Windows, Linux, macOS

Type into the window where you started soulshale. The console shows the prompt > . What you type stays visible while new log lines appear above it. The arrow keys scroll through earlier commands. Ctrl+C or Ctrl+D stops the server like stop.

Log lines have colours, like on Paper: warnings are yellow, errors red, and colour codes in chat and command output show as colours. To switch the colours off, set NO_COLOR=1 or SOULSHALE_COLOR=never before the start. When the output goes to a file or a pipe, there are no colours anyway.

Pterodactyl and Pelican

Use the Console tab of your server. See Pterodactyl and Pelican.

RCON: without attaching

RCON is a remote console: a tool sends commands over the network. It is off by default. Use it if you cannot attach, or want to script commands.

Setting Environment variable Value
enable-rcon SOULSHALE_ENABLE_RCON true
rcon.password SOULSHALE_RCON__PASSWORD At least 8 characters. A shorter one keeps RCON off.
rcon.port SOULSHALE_RCON__PORT 25575 (default)
admin.rcon-bind SOULSHALE_ADMIN__RCON_BIND Address to listen on. Default 127.0.0.1: only the machine itself (inside Docker: only the container).

In Docker, 127.0.0.1 is not reachable from outside the container, so set the bind address to 0.0.0.0 and publish the port on the host's loopback only:

    ports:
      - "25565:25565/tcp"
      - "127.0.0.1:25575:25575/tcp"          # RCON, only from this machine
    environment:
      SOULSHALE_ENABLE_RCON: "true"
      SOULSHALE_RCON__PASSWORD: "change-me-to-a-long-password"
      SOULSHALE_ADMIN__RCON_BIND: "0.0.0.0"  # inside the container

Then use any RCON client, for example mcrcon:

mcrcon -H 127.0.0.1 -P 25575 -p 'change-me-to-a-long-password' "op Steve"

Open the port to the internet only if you must, and then with a strong password. RCON sends the password and commands without encryption. After too many wrong passwords from one address, Soulshale closes its connections for a while.

RCON commands run like console commands and may use every world. In the development version (after beta.6), execute in minecraft:the_nether run …, execute as <player> at @s run … and commands that look for a player in another dimension answer to the RCON client and the console too; before, their output was lost when the world was another one.

First admin steps

Type these in the console:

op Steve                    # make Steve an operator
whitelist add Steve         # let Steve in
whitelist on                # only whitelisted players may join
gamemode creative Steve     # change Steve's game mode
difficulty normal           # peaceful, easy, normal or hard
say Hello everyone          # message to all players
stop                        # save the world and stop the server

Replace Steve with your Minecraft name. deop Steve takes the operator rights away again.

Operator levels (op gives level 4 by default): 1 = may build in the spawn area, 2 = may use cheat commands such as gamemode and give, 3 = may manage players (kick, ban, op), 4 = everything, including stop.

Soulshale's own commands

Command Shows
soulshale status TPS, tick times, memory, CPU, players and loaded chunks.
ss tps Ticks per second. A healthy server shows 20.
ss memory What the process uses, and what part is chunks and entities.
ss version Soulshale and Minecraft version.

ss is the short form of soulshale. All of them are in Admin commands: /soulshale. Settings are in Configuration overview.

See also

Quick start with Docker, Pterodactyl and Pelican, First start, Installation.

Next: Spigot and Paper plugins.