A small question about getting OfflinePlayers

Discussion in 'Plugin Development' started by Freelix2000, Jun 20, 2014.

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

    Freelix2000

    I have just one very small question about getting OfflinePlayers from UUIDs. Is it possible to get the name of an OfflinePlayer from their UUID even if they have never joined the server? I was wondering this because for credits commands that include my username, I want to know if it is possible to instead hard code my UUID in it, parse it into the UUID object then get my current username from the OfflinePlayer, just in case I ever change my username after the 1.8 update. So if you know if this is possible or not, please reply.
     
    techboy291 likes this.
  2. Offline

    mythbusterma

    It is possible, using an external library. However, do keep in mind that this is BLOCKING and, as such, must be run in a separate thread.
     
Thread Status:
Not open for further replies.

Share This Page