Remove deprecation on OfflinePlayer/Player.getName
Dieser Commit ist enthalten in:
Ursprung
8ad937a168
Commit
b8bbdcfacb
@ -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>
|
From: md_5 <git@md-5.net>
|
||||||
Date: Sun, 30 Mar 2014 15:58:22 +1100
|
Date: Sun, 30 Mar 2014 15:58:22 +1100
|
||||||
Subject: [PATCH] Remove deprecation on some player lookup methods
|
Subject: [PATCH] Remove deprecation on some player lookup methods
|
||||||
@ -25,6 +25,18 @@ index 6b9c9f3..7d8736e 100644
|
|||||||
public static List<Player> matchPlayer(String name) {
|
public static List<Player> matchPlayer(String name) {
|
||||||
return server.matchPlayer(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
|
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
|
||||||
index d2cb517..72ef028 100644
|
index d2cb517..72ef028 100644
|
||||||
--- a/src/main/java/org/bukkit/Server.java
|
--- a/src/main/java/org/bukkit/Server.java
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren