Configs

Discussion in 'Plugin Development' started by Rellac, Feb 26, 2014.

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

    Rellac

    I am looking to create a config. First time I have attempted this so here goes.

    I want to create a config with the following information that I can read/write/delete dynamically:

    <player name (args[0])>:
    <date command is set (date)>
    <simple int I specify elsewhere (points)>

    I want to be able to reference each segment seperately and edit them accordingly. I thought perhaps this could be done with some kind of string but my logic fails me and I'm sure there is a simpler way to do this.

    Thanks.
     
  2. Why not just use Bukkit's built in YAML parser?
     
  3. Offline

    Rellac

    care to elaborate?
     
  4. Offline

    IkBenHarm

    Adamki11s
    this might be a little offtopic. But if i would create a class with a file in it. and i would let that class extend YamlConfiguration would this work? Or will YamlConfiguration only work for the default config?
     
  5. Offline

    IkBenHarm

    Adamki11s
    to create a second config easely. You could create every method again, but extending the YamlConfiguration is easyer and faster. If it would work ofcourse
     
Thread Status:
Not open for further replies.

Share This Page