Solved Config help

Discussion in 'Plugin Development' started by Jumb_1907, Apr 25, 2017.

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

    Jumb_1907

    Hey,

    My config file is look like this:

    Code:
    CoalMine:
    IronMine:
    GoldMine:
    DiamondMine:
    EmeraldMine:
    Coal Regen Time: 1
    Iron Regen Time: 2
    Gold Regen Time: 3
    Diamond Regen Time: 4
    Emerald Regen Time: 5
    spawnX:
    spawnY:
    spawnZ: 
    But I want to make it like this:

    Code:
    Mines:
      CoalMine:
      IronMine:
      GoldMine:
      DiamondMine:
      EmeraldMine:
    Regen Time:
      Coal Regen Time: 1
      Iron Regen Time: 2
      Gold Regen Time: 3
      Diamond Regen Time: 4
      Emerald Regen Time: 5
    Spawn:
      spawnX:
      spawnY:
      spawnZ: 
     
  2. Offline

    jobisingh

    Ceate a List called mines and put all your mines in it, then add that to the config

    Sent from my SAMSUNG-SM-G935A using Tapatalk
     
  3. Offline

    timtower Administrator Administrator Moderator

    @Jumb_1907 Use 2 spaces.
    If it is related to code: "Mines.CoalMine"
    And there is always a value or the field does not exist.
     
    Jumb_1907 likes this.
Thread Status:
Not open for further replies.

Share This Page