Skip to main content

Configure the server

To configure the server you can edit the config.properties file.

Set listening IP and Port:

The IP and Port can be set using server.ip and server.port properties in the config file. In most cases you shouldn't change server's IP.

Set server's mode:

To set the server's mode you can use server.mode. There are 3 values that can be used:

  1. "online" - The server will "ask" Mojang servers if the player joining the server actually bought Minecraft.
  2. "offline" - The server will let anyone join. So player can have a "cracked"/"non-premium" account and still join the server.
  3. "velocity" - This mode is used only with a Velocity Proxy. You can set proxy.secret to Velocity's secret.

Saving player stats (optional):

To save player statistics you'll need to set stats.saving to "true".

Then you'll need to select a way of saving those statistics. The solutions are:

  1. A MongoDB Database - Server will save player data in an external MongoDB Database - Set stats.type to "mongo", stats.ip to database's IP, stats.port to database's port, stats.db to the collection (made specifically for Spectrum Survival) in the Database, stats.pass to the password set in the database.
  2. A SQLite Database - Server will save player data in a .db file - Set stats.type to "sqlite", stats.db to a filename (like "players.db", the file doesn't need to exist, the server should create it by itself), stats.ip, stats.port and stats.pass to "null".
  3. A Directory - Server will save player data in a directory in the server's root directory - Set stats.type to "dir", stats.db to a directory name (like "players", the directory doesn't need to exist, the server should create it by itself), stats.ip, stats.port, stats.pass to "null".