Basic Setup
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:
- "online" - The server will "ask" Mojang servers if the player joining the server actually bought Minecraft.
- "offline" - The server will let anyone join. So player can have a "cracked"/"non-premium" account and still join the server.
-
"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:
A MongoDB Database-Server will save player data in an external MongoDB Database- Set:stats.typeto"mongo"stats.iptodatabase's IPstats.porttodatabase's portstats.dbto thecollection (made specifically for Spectrum Survival)in the Databasestats.passto thepasswordset in the database.
A SQLite Database-Server will save player data in a .db file- Set:stats.typeto"sqlite"stats.dbto afilename(like "players.db", the file doesn't need to exist, the server should create it by itself)stats.ip,stats.portandstats.passto"null".
A Directory-Server will save player data in a directory in the server's root directory- Set:stats.typeto"dir"stats.dbtoa directory name(like "players", the directory doesn't need to exist, the server should create it by itself)stats.ip,stats.port,stats.passto"null".