Skip to content

Server Configuration

CJ edited this page May 2, 2024 · 13 revisions

The /.data/luna.json file contains all of the configuration required to set up Luna. Here are a few settings you may want to change right off the bat

  • starting_position

This changes the starting position of all players.

  • experience_multiplier

This changes the experience rate for all players. A value of 1.0 is the equivalent to OSRS XP rates.

  • port

This changes the port that the server binds to.

  • serializer

This changes the default PlayerSerializer used to save and load persistent data. There are three types that ship with Luna.

  1. PassivePlayerSerializer doesn't save or load any data and gives everyone that logs in DEVELOPER rights. Use this if you don't want player data to be saved.

  2. JsonPlayerSerializer saves and loads data using local JSON files. Use this if you want player data to be saved, but don't want to use a database.

  3. SqlPlayerSerializer saves and loads data using postgre SQL databases. The ideal choice when in production.

  • plugin_gui

The plugin GUI allows for specific plugins to be enabled and disabled on startup. By default it's off and all plugins are loaded. Use true to enable it.


Continue to next section.