OldCombatMechanics

OldCombatMechanics

46.1k Downloads

How to whitelist worlds in config

Vaspei opened this issue ยท 4 comments

commented

I've tried various methods to try to get this to work, but it keeps erroring in chat saying it's an issue with my syntax. Any suggestions as to how I can make this work properly?

https://i.imgur.com/9FZCt7X.png

17.11 00:06:54 [Server] INFO in 'string', line 10, column 1:
17.11 00:06:54 [Server] INFO update-checker:
17.11 00:06:54 [Server] INFO ^
17.11 00:06:54 [Server] INFO expected , but found ''
17.11 00:06:54 [Server] INFO in 'string', line 25, column 3:
17.11 00:06:54 [Server] INFO worlds: [BedWars,bedwars2]
17.11 00:06:54 [Server] INFO ^
17.11 00:06:54 [Server] INFO at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:59) ~[patched_1.17.1.jar:git-Paper-90]

commented

Strange. It would be useful if you could post the whole config. Other than that, you can try putting the world names in speech marks, like worlds: ["BedWars","bedwars2"]

commented

image

  • default config
    image
  • changed config

The error persists.
https://paste.ee/p/RWsos

commented

Completely unable to replicate this, but it just looks like some formatting issues higher up in the config. You can pass you config through an online YAML parser if you want to check for errors.