2.0 ‐ Data storage - Rosstail/Nodewar GitHub Wiki
The data of Nodewar (Territories, teams, relations, players) are stored in what is called a "database".
You can choose how
#config.yml
storage:
type: LiteSQL # LiteSQL (local storage), MySQL, MariaDB, MongoDB
host: <string>
port: <int>
database: <string>
username: <string>
password: <string>
save-delay: <float>
The data will be sent to database immediatly after a change:
- Some data may be updated every X seconds (
storage.save-delay
). (Default 300 seconds/ 5 minutes)
Without chosen database, the data will be saved in the LiteSQL file plugins/Nodewar/data/data.db
. You can clone it and rename to make some local backups.
LiteSQL should be only used for test servers or with low populations.
You can choose the database type between MySQL, MariaDB, MongoDB. These database will use host, port, database name, database username and optional database username password.