geforkt von Mirrors/Paper
Merge pull request #913 from Minecrell/deprecate-string-player-sample
Deprecate player sample list that includes only the player name
Dieser Commit ist enthalten in:
Commit
a7bbff405e
@ -5,7 +5,7 @@ Subject: [PATCH] Allow Changing of Player Sample in ServerListPingEvent
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
diff --git a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
||||||
index 3c38d857..84de3ce4 100644
|
index 3c38d857..cb8d0fcd 100644
|
||||||
--- a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
--- a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
||||||
+++ b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
+++ b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
||||||
@@ -0,0 +0,0 @@ package org.bukkit.event.server;
|
@@ -0,0 +0,0 @@ package org.bukkit.event.server;
|
||||||
@ -23,9 +23,19 @@ index 3c38d857..84de3ce4 100644
|
|||||||
+
|
+
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ private java.util.List<String> sample;
|
+ private java.util.List<String> sample;
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
|
+ * @deprecated Will be replaced in 1.13
|
||||||
|
+ */
|
||||||
|
+ @Deprecated
|
||||||
+ public void setSampleText(java.util.List<String> sample) {
|
+ public void setSampleText(java.util.List<String> sample) {
|
||||||
+ this.sample = sample;
|
+ this.sample = sample;
|
||||||
+ }
|
+ }
|
||||||
|
+
|
||||||
|
+ /**
|
||||||
|
+ * @deprecated Will be replaced in 1.13
|
||||||
|
+ */
|
||||||
|
+ @Deprecated
|
||||||
+ public java.util.List<String> getSampleText() {
|
+ public java.util.List<String> getSampleText() {
|
||||||
+ return sample;
|
+ return sample;
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren