Storing player stats in a specific file

Discussion in 'Plugin Development' started by TheOwner3D, Jun 14, 2013.

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


    Hey guys, Im reaaly new in coding with Bukkit or Java in general. So, my question is, is it possible to store stats of players in in a file called for example stats or something like that. So I can use these stats for example to put them in a scoreboard (for each player) and so on... With stats I mean Kills, Deaths, ...

    So, it would be great to get answers here ;)

    Greetings TheOwner3D
  2. Offline


  3. Offline


    Since that doesn't really have anything to do with storing the data, like OP asked...

    The easiest way would be MySQL, but as far as flatfiles go, you'll want to store it in a config.yml. I would store a HashMap<Player, Int> in the Config for each stat. You can increment the Integer in the Hashmap during an event, like on PlayerDeath for kills, etc.
  4. Offline


    yes it does, it keeps info about stats. so you can store all players kills, deaths, and anything you want
Thread Status:
Not open for further replies.

Share This Page