From ea0fde004ae78c943abd4f37b26bc00cd370a642 Mon Sep 17 00:00:00 2001 From: willies952002 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 index 3c38d8573..a293bc212 100644 --- 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; @@ -145,4 +146,27 @@ public class ServerListPingEvent extends ServerEvent implements Iterable public Iterator iterator() throws UnsupportedOperationException { throw new UnsupportedOperationException(); } + + // Paper start + private java.util.List sample; + + /** + * @deprecated Will be replaced in 1.13 + * @param sample the new player list sample + */ + @Deprecated + public void setSampleText(java.util.List sample) { + this.sample = sample; + } + + /** + * @deprecated Will be replaced in 1.13 + * @return the player list sample + */ + @Deprecated + public java.util.List getSampleText() { + return sample; + } + // Paper end + } -- 2.18.0