Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Whats better?

Comments in 'Plugin Development' started by Primus, Aug 5, 2015.

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

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    For example i want to save player stats like: kills and deaths join times etc.
    I could use config file for each player or one config file for all but whats better?
  2. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    One config I think...
    But with this format for each player.
    GmWM:
    - kills: 1
    - deaths: 0
    (arrays)
    Thanks!
  3. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Yea i preffer for each.
    ~/plugins/MyPlugin/players/p/PrimusLV.yml
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    One for each. Have a look at how SimpleAuth does it. It's pretty good :)
Thread Status:
Not open for further replies.

Share This Page

Advertisement