Configuration overview
Vanillite uses two files in the server folder. Both are created on the first start.
| File | Holds |
|---|---|
server.properties |
Vanilla's settings, with Vanilla's names, meanings and defaults. |
vanillite.toml |
Everything Vanillite adds: the profile, deviations from Vanilla, performance settings and backups, the proxy secret, Bedrock players, plugins. |
The repository has a complete list of every setting with its default and range: docs/configuration.md. It is generated from the settings list of the server, so it always matches the code.
server.properties
Works like on a Vanilla server. You can copy it from an existing Vanilla server. On every start Vanillite writes the file back with all known keys; keys it does not know are kept.
Some keys have no effect yet, because the game parts behind them are still being built. Used today:
- Network:
server-ip,server-port,motd(a plugin can replace it while the server runs),online-mode,prevent-proxy-connections,network-compression-threshold,accepts-transfers,max-players,enable-status,hide-online-players,rate-limit,log-ips,bug-report-link,enable-code-of-conduct. - Resource pack:
resource-pack,resource-pack-id,resource-pack-prompt,require-resource-pack(a player who declines a required pack is kicked). Aserver-icon.pngin the server folder is shown in the server list. - World:
level-name,level-seed,level-type,generate-structures,region-file-compression,view-distance,simulation-distance,entity-broadcast-range-percentage,max-chained-neighbor-updates. - Players:
gamemode,force-gamemode,hardcore,difficulty,white-list,enforce-whitelist,op-permission-level,player-idle-timeout(kicks idle players after that many minutes). - Chat:
enforce-secure-profile,chat-spam-threshold-seconds,command-spam-threshold-seconds. - Remote admin:
enable-rcon,rcon.port,rcon.password,enable-query,query.port,broadcast-rcon-to-ops,broadcast-console-to-ops(see below). - Server:
max-tick-time(the watchdog limit),pause-when-empty-seconds.
level-seed, level-type and generate-structures only matter when new chunks are created; an existing world keeps its seed.
RCON and Query
RCON (run console commands from another program) and Query (server info for server lists, GameSpy4) work like on Vanilla, so existing tools work; Query also lists the installed plugins, like Bukkit. For safety Vanillite adds limits in the [admin] section of vanillite.toml. All need a restart.
| Key | Default | What it does |
|---|---|---|
admin.rcon-bind |
"127.0.0.1" |
Address RCON listens on. By default only programs on the same machine can connect. Use "0.0.0.0" to allow others. |
admin.rcon-min-password-length |
8 |
RCON stays off if rcon.password is shorter (1–1024). |
admin.rcon-max-failed-logins |
5 |
Wrong passwords per address before it is blocked (1–10,000). |
admin.rcon-max-connections |
16 |
RCON connections at the same time (1–1024). |
admin.query-bind |
"127.0.0.1" |
Address Query listens on. |
admin.query-max-packets-per-second |
20 |
Query packets per address and second (1–10,000). |
vanillite.toml
The file starts with the profile. The default is paper, which behaves like a default Paper server. Below the profile, every setting is listed, commented out, with an explanation and its allowed range. To change a setting, remove the # and edit the value.
profile = "paper"
[performance.tick]
# parallel-dimensions = true
[performance.threads]
# compute = 0
For behaviour that aims to match Vanilla as exactly as possible, set profile = "vanilla".
A server whose vanillite.toml has no profile line (made before paper became the default) gets profile = "vanilla" written into it once, so nothing changes for it. New installs start with paper.
Moved from Paper, Spigot or Bukkit (development version, not in 0.1.0-beta.4): if the server folder has no vanillite.toml yet but a bukkit.yml, spigot.yml or Paper's config/paper-*.yml, the first start writes a vanillite.toml with profile = "paper" (or "spigot") and every setting of those files that Vanillite has an equivalent for and that differs from the profile. Each value has a comment with its source. The old files are only read; the original server.properties is kept in vanillite-migration/. Settings without an equivalent are logged once. More: Move a world to Vanillite and back.
What each profile changes compared with Vanilla, and which one to pick: Profiles.
Settings per world
Some settings can differ per dimension. Put them in a section for that world:
[worlds."minecraft:the_nether".performance.distances]
view-distance = 6
Extra worlds
Besides the world named by level-name (with its Overworld, Nether and End), a server can run more independent worlds, like Multiverse on Paper. Each one is declared in its own section and loaded at start:
[extra-worlds.lobby]
environment = "normal"
generator = "flat"
seed = ""
generate-structures = true
| Key | Default | What it does |
|---|---|---|
environment |
normal |
Its dimension type: normal, nether or the_end. |
generator |
normal |
The terrain of a new world: normal, flat, void, amplified, large_biomes, the key of a dimension to take its generator, or a plugin generator (plugin:<name>[:<id>], bukkit:<Plugin>[:<id>], see World generators). |
seed |
empty | The seed of a new world, like level-seed; empty means random. |
generate-structures |
true |
Whether a new world gets structures. |
generator, seed and generate-structures only matter when the world is created. An extra world has its own folder with its own level.dat, and its settings per world come from [worlds."minecraft:<name>"]. Time, weather, game rules and player data are shared with the server. Plugins can also create, load and unload worlds while the server runs (Plugins).
World generators
Since 0.1.0-beta.4 each world can have its own generator, like worlds.<name>.generator in Paper's bukkit.yml. Without a setting, the server's own generator is used (level-type, or an extra world's generator), which is built to match Vanilla (World generation). The section is [generation]; it also works per world:
[worlds."minecraft:overworld".generation]
generator = "plugin:terra:overworld" # generator "terra" of a native plugin, id "overworld"
[extra-worlds.skyblock]
generator = "plugin:voidgen" # a native plugin's generator "voidgen"
| Key | Default | What it does |
|---|---|---|
generation.generator |
empty | A named plugin generator for this world: plugin:<name>[:<id>], registered by a native plugin; the id goes to the plugin. bukkit:<Plugin>[:<id>] is a Bukkit plugin's own generator (like Plugin:id in bukkit.yml). Empty keeps the server's generator. |
generation.engine |
exact |
How the built-in generator computes new chunks. exact aims to give Vanilla's terrain bit for bit and is the only engine so far; the setting is reserved for later engines. |
generation.switch |
false |
Lets an existing world take a changed generator or engine (see below). |
All three need a restart. What to know:
- Native plugin generators work now. Generators of Bukkit plugins (
bukkit:<Plugin>[:<id>]) are in the source of the Bukkit layer but not in a layer release yet: the layer that Vanillite 0.1.0-beta.4 installs (0.1.3) does not have them, so the world would not start. They come with a later layer release. The layer then asks the plugin'sgetDefaultWorldGenerator(world, id). - A server moved from Bukkit or Paper keeps its generators. A world without
generation.generatortakes the generator thatworlds.<name>.generatorof abukkit.ymlin the server folder names, asbukkit:<Plugin>[:<id>]. For the default world's Nether and End, Bukkit's names are<level-name>_netherand<level-name>_the_end. The same layer release is needed. - A missing generator stops the world. If a plugin generator is missing, or the plugin has none for that world, the world does not start. It is never generated with another generator.
- The choice is stored in the world. The first start saves it in the world's
level.dat(Vanilla ignores it). From then on it wins: a changed setting or profile never switches an existing world, and the server only logs the difference. switch = truetakes the configured generator anyway. New chunks then come from the new generator and do not fit the old chunks at the border (steps, cut caves). Back up first.- A world from Vanilla, Paper or an older Vanillite has no stored choice: it keeps the built-in generator and takes the configured one, so an imported Bukkit world can keep its plugin generator.
- A world with a plugin generator keeps Vanilla's terrain settings in
world_gen_settings.dat, so Vanilla and other servers can open it.
For plugin authors: Plugin API: slots and hosted plugins.
Environment variables
Every key of both files can also be set with an environment variable VANILLITE_<KEY>: upper case, dots become __, dashes become _. Examples: VANILLITE_MOTD, VANILLITE_SERVER_PORT, VANILLITE_PERFORMANCE__TICK__PARALLEL_DIMENSIONS=true. VANILLITE_PROFILE picks the profile (VANILLITE_PROFILE=vanilla for behaviour that aims to match Vanilla as exactly as possible). VANILLITE_EULA=true accepts the Minecraft EULA.
A variable counts for this run only; the files keep their own values. An empty variable is ignored. For vanillite.toml settings that are on/off or a fixed choice, the value default is ignored too, so the profile decides. This is handy in containers and game server panels (see Installation).
Two more variables are about the console: VANILLITE_LOG sets the log level (error to trace, default info). The log has colours on a terminal and in Pterodactyl's console, otherwise plain text; VANILLITE_COLOR=always or never overrides that, and NO_COLOR turns colours off (Server console and first admin steps).
Which value wins
Each layer overrides the one before it:
flowchart LR
P[Profile] --> T[vanillite.toml] --> W[World section] --> E[Environment variable]
Reloading
Most settings can be reloaded while the server runs: type vanillite reload config in the console, or /vanillite reload config in the game as an operator (level 4). The answer names the changed settings that apply now and those that need a restart. Settings marked "Needs a restart" only apply after a restart; the server logs a warning if you change one. More commands like this: Admin commands: /vanillite.
See also: Security by design.
Next: Profiles.