From 83bce2a4a909404de581ead99a80955dd07d1c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Kosman?= Date: Sun, 25 Aug 2024 21:54:40 +0200 Subject: docs: add troubleshooting solution to config file --- Writerside/topics/config-file.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'Writerside/topics/config-file.md') diff --git a/Writerside/topics/config-file.md b/Writerside/topics/config-file.md index 745cc44..91288e2 100644 --- a/Writerside/topics/config-file.md +++ b/Writerside/topics/config-file.md @@ -20,7 +20,8 @@ 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). To know what each setting does, you can check [the gamerules documention](gamerules.md). +similar names, even though different). To know what each setting does, you can +check [the gamerules documention](gamerules.md). The config syntax is very simple : - `name_of_the_setting = value` to set a setting to a `value`. Only one setting @@ -38,6 +39,20 @@ solutions before making an issue on GitHub. 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 : +```yaml +# Do this : +game_duration = 30 + +# And NOT this : +gameDurationMinutes = 30 +molehunt:GameDurationMinutes = 30 +``` + +You can see the list of all config file setting in [the default configuration file](#default-configuration). + ### Make sure the syntax is correct A comment line starts with a `#`, not with `//` nor with anything else. -- cgit v1.2.3