Yaml 'child node' problem.

Discussion in 'Spigot Plugin Development' started by TheMasteredPanda, May 1, 2017.

  1. Small problem with YAML 'child nodes'. Say I have a number of nodes like this:

    Code (Text):
    Messages:
      Message1:
      Message2:
      Message3:
        Message4:
        Message5:
    I can access messages 1 to 2. But if I try to access messages 4 to 5. an npe is thrown Tried looking on google but I didnt find anything remotely helpful. What could be the cause of this?

    PS: Hasn't happened to me before, so I'm miffed tbh
     
  2. cfg.getString("Messages.Message3.Message4") :p
     
  3. Maybe the code you did not provide?
    *"Messages.Message3.Message4"
     
  4. That's exactly what I'm doing, look here