Options won't "load"
zerafox opened this issue ยท 2 comments
Having trouble getting the file to accept the 'options'. I've altered all kinds of indentation and what-not but it just doesn't work.
Leaving it out player's weren't being Ranked at all, so I was forced to make some alterations.
Default:
prerequisites:
permission:
value: rank.1
requirements:
time: 12h
options:
auto complete: true
results:
command: lp user &p promote player
message: Congratulations, you were promoted to Novice!
options:
display name: Novice Rank
auto choose: true
show based on prerequisites: true
It seems like this is a valid path, but the Yaml is invalid. I ran it through a yaml parser and found this is correct:
Default:
prerequisites:
permission:
value: rank.1
requirements:
time:
value: 12h
options:
auto complete: true
results:
command: lp user &p promote player
message: Congratulations, you were promoted to Novice!
options:
display name: Novice Rank
auto choose: true
show based on prerequisites: true
06.02 05:59:36 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.8.0_111] 06.02 05:59:36 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.run(MinecraftServer.java:576) [custom18.jar:git-Spigot-4741400-a1d3777] 06.02 05:59:36 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.C(MinecraftServer.java:678) [custom18.jar:git-Spigot-4741400-a1d3777] 06.02 05:59:36 [Server] INFO at net.minecraft.server.v1_11_R1.DedicatedServer.D(DedicatedServer.java:399) [custom18.jar:git-Spigot-4741400-a1d3777] 06.02 05:59:36 [Server] INFO at net.minecraft.server.v1_11_R1.MinecraftServer.D(MinecraftServer.java:738) [custom18.jar:git-Spigot-4741400-a1d3777] 06.02 05:59:36 [Server] INFO at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:353) [custom18.jar:git-Spigot-4741400-a1d3777] 06.02 05:59:36 [Server] INFO at org.bukkit.craftbukkit.v1_11_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[custom18.jar:git-Spigot-4741400-a1d3777] 06.02 05:59:36 [Server] INFO at me.armar.plugins.autorank.Autorank$1.run(Autorank.java:305) ~[?:?] 06.02 05:59:36 [Server] INFO at me.armar.plugins.autorank.pathbuilder.PathManager.initialiseFromConfigs(PathManager.java:154) ~[?:?] 06.02 05:59:36 [Server] INFO at me.armar.plugins.autorank.pathbuilder.PathBuilder.initialisePaths(PathBuilder.java:189) ~[?:?] 06.02 05:59:36 [Server] INFO java.lang.IllegalArgumentException: Requirement 'options' of path 'Default' is unknown!
I've done exactly as you said, but I'm still getting an error. :'(
Default:
prerequisites:
permission:
value: rank.1
requirements:
time:
value: 12h
options:
auto complete: true
results:
command: lp user &p promote player
message: Congratulations, you were promoted to Novice!
options:
display name: Novice Rank
auto choose: true
show based on prerequisites: true