Closed bryanfolstad closed 2 years ago
Your YAML is invalid.
Your edits:
GriefPrevention:
Claims:
Claim Blocks Accrued Per Hour: 500
Default: 100
Max Accrued Claim Blocks: 100000
Default: 80000
Valid YAML, the defaults:
GriefPrevention:
Claims:
Claim Blocks Accrued Per Hour:
Default: 100
Max Accrued Claim Blocks:
Default: 80000
Try passing your yaml through a parser, there are plenty online.
Looks like your YAML is invalid - run it through a linter after editing it - e.g. yamllint
and it'll tell you what's wrong.
If you're doing as you described, though:
changing Claim Blocks Accrued Per Hour: to Claim Blocks Accrued Per Hour: 500
That's probably the problem - the config will look something like:
Claim Blocks Accrued Per Hour:
Default: 100
You need to be editing the 100 after "Default", not adding an extra spurious value at the end of the previous line (if you'd done that, a linter would have explained, just like GriefPrevention is trying to, e.g.:
[davidp@headshrinker:~]$ diff -u XXX/plugins/GriefPreventionData/config.yml ~/tmp/config-example.yml
--- XXX/plugins/GriefPreventionData/config.yml 2022-02-18 22:19:34.631367099 +0000
+++ /home/davidp/tmp/config-example.yml 2022-02-27 18:36:47.295243949 +0000
@@ -23,7 +23,7 @@
ProtectDonkeys: true
ProtectLlamas: true
InitialBlocks: 100
- Claim Blocks Accrued Per Hour:
+ Claim Blocks Accrued Per Hour: 500
Default: 100
Max Accrued Claim Blocks:
Default: 2000
[davidp@headshrinker:~]$ yamllint ~/tmp/config-example.yml
/home/davidp/tmp/config-example.yml
1:81 error line too long (210 > 80 characters) (line-length)
3:1 warning missing document start "---" (document-start)
27:14 error syntax error: mapping values are not allowed here
Oh wow. Thanks for your help! This has been frustrating.
I had no idea you have to change the Default line instead of the line with the blank value. Thank you! This solved the issue!
Observed Behavior
When making changes to settings in the config.yml file it refuses to load the changed settings and resets to the default config. Changing any setting does this.
Expected Behavior
Adjusted settings should allow the config.yml to load and change the settings on the server accordingly.
Reproduction steps
Stack trace or error log
Server version
GriefPrevention version
Configuration
Plugin list
Running without GriefPrevention
Running with only GriefPrevention
Running on a fresh, clean server installation
Using unmodified client
We appreciate you taking the time to fill out a bug report!