From 4b3dd7c7e8127494d7e76ccb0b263f8776f0ee72 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Thu, 12 Oct 2017 15:50:17 +0200 Subject: [PATCH] Deprecate player sample list that includes only the player name --- ...nging-of-Player-Sample-in-ServerListPingEve.patch | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Spigot-API-Patches/Allow-Changing-of-Player-Sample-in-ServerListPingEve.patch b/Spigot-API-Patches/Allow-Changing-of-Player-Sample-in-ServerListPingEve.patch index 49641b3b14..7d1f669df1 100644 --- a/Spigot-API-Patches/Allow-Changing-of-Player-Sample-in-ServerListPingEve.patch +++ b/Spigot-API-Patches/Allow-Changing-of-Player-Sample-in-ServerListPingEve.patch @@ -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 -index 3c38d857..84de3ce4 100644 +index 3c38d857..cb8d0fcd 100644 --- a/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; @@ -23,9 +23,19 @@ index 3c38d857..84de3ce4 100644 + + // Paper start + private java.util.List sample; ++ ++ /** ++ * @deprecated Will be replaced in 1.13 ++ */ ++ @Deprecated + public void setSampleText(java.util.List sample) { + this.sample = sample; + } ++ ++ /** ++ * @deprecated Will be replaced in 1.13 ++ */ ++ @Deprecated + public java.util.List getSampleText() { + return sample; + }