mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 18:07:39 +01:00
Remove deprecation on OfflinePlayer/Player.getName
This commit is contained in:
parent
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>
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user