SpongePowered/Configurate

Bug with key words?

BrainRTP opened this issue · 1 comments

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?

This is probably due to the yaml spec treating 'on' and 'off' as boolean values in 1.1. It's a known quirk.