Bug with key words?
BrainRTP opened this issue · 1 comments
BrainRTP commented
Hi! I have this language.yaml
command:
setSpawnpoint: "spawnpoint"
teleport: "telepor"
toggleMsg:
on: "message enable"
off: "message disable"
When i try get command.toggleMsg.on
or command.toggleMsg.off
i have null (in this case Missing language key - [command, toggleMsg, off]
).
Code
configuration.get().node("command", "toggleMsg", "off").getString("&cMissing language key - &e" + Arrays.toString(key))
It is bug or not?
zml2008 commented
This is probably due to the yaml spec treating 'on' and 'off' as boolean values in 1.1. It's a known quirk.