Accessing Player.dat

Discussion in 'Spigot Plugin Development' started by TheSupreme, Feb 13, 2017.

  1. Greetings,

    Is it possible to access the player.dat files in the world folder via spigot?
  2. You can get the file object via:
    Code (Java):
    new File(Bukkit.getWorldContainer() + File.separator + World#getName() + File.separator + "playerdata" + File.separator +   Player#getUniqueId());
    I wrote it from phone.
    Also, i think that the things are stored in NBT.
    • Agree Agree x 1
  3. Thanks.