2018-01-16 04:13:17 +01:00
|
|
|
From 3fe26d396837d1f3aad927133722332e4d1f7b51 Mon Sep 17 00:00:00 2001
|
2017-07-21 00:59:51 +02:00
|
|
|
From: willies952002 <admin@domnian.com>
|
|
|
|
Date: Thu, 20 Jul 2017 18:05:36 -0400
|
|
|
|
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
|
2017-10-12 15:50:17 +02:00
|
|
|
index 3c38d857..cb8d0fcd 100644
|
2017-07-21 00:59:51 +02:00
|
|
|
--- a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
|
|
|
+++ b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
|
|
|
@@ -2,6 +2,7 @@ package org.bukkit.event.server;
|
|
|
|
|
|
|
|
import java.net.InetAddress;
|
|
|
|
import java.util.Iterator;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
import org.apache.commons.lang.Validate;
|
|
|
|
import org.bukkit.entity.Player;
|
2017-10-12 15:50:17 +02:00
|
|
|
@@ -145,4 +146,25 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
|
2017-07-21 00:59:51 +02:00
|
|
|
public Iterator<Player> iterator() throws UnsupportedOperationException {
|
|
|
|
throw new UnsupportedOperationException();
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Paper start
|
|
|
|
+ private java.util.List<String> sample;
|
2017-10-12 15:50:17 +02:00
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * @deprecated Will be replaced in 1.13
|
|
|
|
+ */
|
|
|
|
+ @Deprecated
|
2017-07-21 00:59:51 +02:00
|
|
|
+ public void setSampleText(java.util.List<String> sample) {
|
|
|
|
+ this.sample = sample;
|
|
|
|
+ }
|
2017-10-12 15:50:17 +02:00
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * @deprecated Will be replaced in 1.13
|
|
|
|
+ */
|
|
|
|
+ @Deprecated
|
2017-07-21 00:59:51 +02:00
|
|
|
+ public java.util.List<String> getSampleText() {
|
|
|
|
+ return sample;
|
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
+
|
|
|
|
}
|
|
|
|
--
|
2018-01-16 04:13:17 +01:00
|
|
|
2.15.1
|
2017-07-21 00:59:51 +02:00
|
|
|
|