Help Converting to UniqueID

Discussion in 'Plugin Development' started by IcyRelic, May 14, 2014.

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

    IcyRelic

    Here is my current way of getting the players with a string

    List<Player> possible = Bukkit.matchPlayer(name);

    How can i make it use unique id so it doesn't depreciate it or should i just suppress it
     
  2. Offline

    xTigerRebornx

    Icyrelic If you are storing data per-player, you will need to use UUIDs. If your data is only valid for the current session of the target (It will apply while they are online without logging out), then using the name is fine, since the deprecation was to raise awareness.

    UUIDs - Persistent data storage (Stats, Economy, Skills, etc)
    Name - Current session (Message, Teleport, Heal)
    (Basic ideas)
     
Thread Status:
Not open for further replies.

Share This Page