Solved Read playerdata?

Discussion in 'Plugin Development' started by Meatiex, Dec 21, 2014.

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

    Meatiex

    How would I read player's data file? (nbt)
    For example: world/playerdata/07ecc32b-6546-402f-a4c9-b693aa3a4983.dat
    I want to read the value: bukkit.lastKnownName

    I'm trying to make a plugin that lists all players that have joined the server
    (I can't make it save in a database when they login because its too late for that)

    Any help is awesome :D
     
  2. Offline

    API_Tutorials

    @Meatiex
    Code:
    for (OfflinePlayer player : Bukkit.getOfflinePlayers()){
    // code here
    }
     
    Meatiex likes this.
  3. Offline

    Meatiex

    Thank you, it worked :D
     
    API_Tutorials likes this.
  4. Offline

    API_Tutorials

Thread Status:
Not open for further replies.

Share This Page