Reading and writing to text file from plugin. (Stats plugin)

Discussion in 'Plugin Development' started by arsenalfcgunners, Jan 2, 2015.

Thread Status:
Not open for further replies.
  1. What is the best way in bukkit to create a text file for each player? I am trying to create a stats plugin, and it needs to log or read data when a command is performed. For example if a player wins a game then the plugin needs to create a file if the player does not already have a stats file, and then record a win, and if the player already has a file, record the win to his stats. I also will need to be able to read from the file so that the player can see his stats. I would prefer that the files are created in a file within the plugins directory. What is the best way to do this so it works with bukkit?
     
  2. Offline

    BrentHogeling

Thread Status:
Not open for further replies.

Share This Page