Add API for dealing with player UUIDs. Adds BUKKIT-5071, BUKKIT-5501

By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
Bukkit/Spigot
2014-03-28 21:12:42 -05:00
parent a742349b87
commit 43e2fb9739
3 changed files with 61 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
package org.bukkit;
import java.util.Date;
import java.util.UUID;
import org.bukkit.configuration.serialization.ConfigurationSerializable;
import org.bukkit.entity.AnimalTamer;
@@ -19,10 +20,20 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
/**
* Returns the name of this player
*
* @deprecated Use {@link #getUniqueId()} as player names are no longer
* guaranteed to be unique
* @return Player name
*/
@Deprecated
public String getName();
/**
* Returns the UUID of this player
*
* @return Player UUID
*/
public UUID getUniqueId();
/**
* Checks if this player is banned or not
*