Add API for dealing with player UUIDs. Adds BUKKIT-5071, BUKKIT-5501
By: Travis Watkins <amaranth@ubuntu.com>
This commit is contained in:
parent
a742349b87
commit
43e2fb9739
3 changed files with 61 additions and 0 deletions
|
@ -182,6 +182,7 @@ public final class Bukkit {
|
|||
/**
|
||||
* @see Server#getPlayer(String name)
|
||||
*/
|
||||
@Deprecated
|
||||
public static Player getPlayer(String name) {
|
||||
return server.getPlayer(name);
|
||||
}
|
||||
|
@ -189,10 +190,18 @@ public final class Bukkit {
|
|||
/**
|
||||
* @see Server#matchPlayer(String name)
|
||||
*/
|
||||
@Deprecated
|
||||
public static List<Player> matchPlayer(String name) {
|
||||
return server.matchPlayer(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Server#getPlayer(java.util.UUID)
|
||||
*/
|
||||
public static Player getPlayer(UUID id) {
|
||||
return server.getPlayer(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Server#getPluginManager()
|
||||
*/
|
||||
|
@ -408,13 +417,22 @@ public final class Bukkit {
|
|||
/**
|
||||
* @see Server#getOfflinePlayer(String name)
|
||||
*/
|
||||
@Deprecated
|
||||
public static OfflinePlayer getOfflinePlayer(String name) {
|
||||
return server.getOfflinePlayer(name);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Server#getOfflinePlayer(java.util.UUID)
|
||||
*/
|
||||
public static OfflinePlayer getOfflinePlayer(UUID id) {
|
||||
return server.getOfflinePlayer(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* @see Server#getPlayerExact(String name)
|
||||
*/
|
||||
@Deprecated
|
||||
public static Player getPlayerExact(String name) {
|
||||
return server.getPlayerExact(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue