Archiviert
13
0

Remove deprecation on OfflinePlayer/Player.getName

Dieser Commit ist enthalten in:
md_5 2014-03-30 20:15:56 +11:00
Ursprung 8ad937a168
Commit b8bbdcfacb

Datei anzeigen

@ -1,4 +1,4 @@
From aae82a23b8f1f587e8e263a8824c7ea5ae5736ee Mon Sep 17 00:00:00 2001
From 6ada6b20f8e3682dd430300130b43f69c35377c4 Mon Sep 17 00:00:00 2001
From: md_5 <git@md-5.net>
Date: Sun, 30 Mar 2014 15:58:22 +1100
Subject: [PATCH] Remove deprecation on some player lookup methods
@ -25,6 +25,18 @@ index 6b9c9f3..7d8736e 100644
public static List<Player> matchPlayer(String name) {
return server.matchPlayer(name);
}
diff --git a/src/main/java/org/bukkit/OfflinePlayer.java b/src/main/java/org/bukkit/OfflinePlayer.java
index cbf8746..7da5ab6 100644
--- a/src/main/java/org/bukkit/OfflinePlayer.java
+++ b/src/main/java/org/bukkit/OfflinePlayer.java
@@ -24,7 +24,6 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio
* guaranteed to be unique
* @return Player name
*/
- @Deprecated
public String getName();
/**
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
index d2cb517..72ef028 100644
--- a/src/main/java/org/bukkit/Server.java