kernitus / BukkitOldCombatMechanics

Spigot plugin to configure combat mechanics from 1.9 onwards
https://www.spigotmc.org/resources/19510/
Mozilla Public License 2.0
168 stars 71 forks source link

How to whitelist worlds in config #572

Closed Vaspei closed 2 years ago

Vaspei commented 2 years ago

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]

kernitus commented 2 years ago

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"]

Vaspei commented 2 years ago

https://pastebin.com/5ghUHDhn

Thin-Troll commented 2 years ago

image

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

kernitus commented 2 years ago

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.