Nodes keeps changing to String in config

Discussion in 'Plugin Development' started by pipo3090, May 27, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    pipo3090

    When I load my config.yml(from server reload/restart, after I exported the plugin and deleted the existing one), some nodes keep changing to a string(with ' ' surrounding them).
    Can that be because I use getConfigurationSection()? If so, what is an alternative?

    Config:
    Code:
    coins:
      notch: 10000
      TFOX: 500
    inv:
      eten:
        '297': 10
        '260': 7
    
    All help is welcome ;)
     
    Last edited: May 27, 2017
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    pipo3090

  4. Online

    timtower Administrator Administrator Moderator

    @pipo3090 That is normal, you can just ignore it.
    All keys are strings just because that is how YML works.
     
  5. Offline

    pipo3090

    Oh okay, then it's fine. Thank you for your help!
     
Thread Status:
Not open for further replies.

Share This Page