Config file
On top of the gamerules, you can edit a config file, named molehunt.properties. This file is automatically generated when starting a server with the mod installed.
This file will set the default settings when creating a new world, but that's it. You will still be able to change the gamerules. Editing this file is recommended when you plan on having multiple molehunt games with the same settings but on different worlds.
Editing the config file
You can find the molehunt.properties file in your server's config folder. If it is not present, make sure the mod is installed, and start your server.
Every setting available in the config file reflects a gamerule (they have very similar names, even though different). To know what each setting does, you can check the gamerules documention.
The config syntax is very simple:
name_of_the_setting = valueto set a setting to avalue. Only one setting can be set on a single lineA line starting with a
#is a comment, and will not be counted be the mod.
Troubleshooting the config file
If you realise the config file isn't being applied correctly, check these potential solutions before making an issue on GitHub.
Checking the file location
Make sure the config file you're editing is located in your server's config directory, and that the file's name is molehunt.properties.
Check that you use the config file's setting names, and not the gamerule names
For example, to change the game duration in the config file:
You can see the list of all config file setting in the default configuration file.
Make sure the syntax is correct
A comment line starts with a #, not with // nor with anything else.
Also, you can only set one variable on one line. For exemple, this is incorrect:
Make sure the setting have the right value type
A boolean value (one that can either be "on or off") can be set to true or false, nothing else.
Every numerical value should be integers: there are no decimal values in this mod. And you should not put the unit after the value (do not put 50 blocks, but only 50).
Default configuration
Here is the default configuration that is automatically generated. Every setting is listed below.
To regenerate the default configuration, you can rename, move or delete your current config file, and then run the server with the mod installed.