Update to Minecraft 1.15

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-12-11 09:00:00 +11:00
parent fb6a646cbc
commit 7887b38ac0
21 changed files with 299 additions and 322 deletions

View File

@@ -358,12 +358,9 @@ public final class Bukkit {
* <p>
* This method may not return objects for offline players.
*
* @deprecated Use {@link #getPlayer(UUID)} as player names are no longer
* guaranteed to be unique
* @param name the name to look up
* @return a player if one was found, null otherwise
*/
@Deprecated
@Nullable
public static Player getPlayer(@NotNull String name) {
return server.getPlayer(name);
@@ -372,12 +369,9 @@ public final class Bukkit {
/**
* Gets the player with the exact given name, case insensitive.
*
* @deprecated Use {@link #getPlayer(UUID)} as player names are no longer
* guaranteed to be unique
* @param name Exact name of the player to retrieve
* @return a player object if one was found, null otherwise
*/
@Deprecated
@Nullable
public static Player getPlayerExact(@NotNull String name) {
return server.getPlayerExact(name);
@@ -390,12 +384,9 @@ public final class Bukkit {
* This list is not sorted in any particular order. If an exact match is
* found, the returned list will only contain a single result.
*
* @deprecated Use {@link #getPlayer(UUID)} as player names are no longer
* guaranteed to be unique
* @param name the (partial) name to match
* @return list of all possible players
*/
@Deprecated
@NotNull
public static List<Player> matchPlayer(@NotNull String name) {
return server.matchPlayer(name);