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 Vanillite | Where the console is |
|---|---|
| Docker Compose | docker compose attach vanillite |
docker run |
docker attach vanillite (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:
vanillite:
container_name: vanillite
stdin_open: true # keeps the console input open
tty: true # gives the log its colours
Open it:
docker compose attach vanillite
With plain docker run, add -it when you start:
docker run -d -it --name vanillite -p 25565:25565 -v vanillite-data:/data \
-e VANILLITE_EULA=true --stop-timeout 60 thoenehannes/vanillite:beta
docker attach vanillite
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+Cstops the server, and so doesCtrl+D. This is the same as the commandstop. To leave the console and keep the server running, pressCtrl+P, thenCtrl+Q.
Good to know:
- The image has no shell.
docker exec -it vanillite shdoes not work. Useattach, or RCON below. - Only want to read the log?
docker compose logs -f(ordocker logs -f vanillite).Ctrl+Cleaves the log and the server keeps running. - Without
stdin_openandtty, the server still runs, but you cannot type into it.
Windows, Linux, macOS
Type into the window where you started vanillite. 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 VANILLITE_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 |
VANILLITE_ENABLE_RCON |
true |
rcon.password |
VANILLITE_RCON__PASSWORD |
At least 8 characters. A shorter one keeps RCON off. |
rcon.port |
VANILLITE_RCON__PORT |
25575 (default) |
admin.rcon-bind |
VANILLITE_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:
VANILLITE_ENABLE_RCON: "true"
VANILLITE_RCON__PASSWORD: "change-me-to-a-long-password"
VANILLITE_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, Vanillite closes its connections for a while.
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.
Vanillite's own commands
| Command | Shows |
|---|---|
vanillite status |
TPS, tick times, memory, CPU, players and loaded chunks. |
vl tps |
Ticks per second. A healthy server shows 20. |
vl memory |
What the process uses, and what part is chunks and entities. |
vl version |
Vanillite and Minecraft version. |
vl is the short form of vanillite. All of them are in Admin commands: /vanillite. Settings are in Configuration overview.
See also
Quick start with Docker, Pterodactyl and Pelican, First start, Installation.
Next: Spigot and Paper plugins.