diff --git a/CraftBukkit-Patches/0059-Actually-Use-Results-of-PingEvent.patch b/CraftBukkit-Patches/0059-Actually-Use-Results-of-PingEvent.patch new file mode 100644 index 0000000..2097092 --- /dev/null +++ b/CraftBukkit-Patches/0059-Actually-Use-Results-of-PingEvent.patch @@ -0,0 +1,22 @@ +From bbc35566e6de193bc17b835afe0ef855b6b06a5d Mon Sep 17 00:00:00 2001 +From: md_5 +Date: Tue, 2 Jul 2013 14:28:52 +1000 +Subject: [PATCH] Actually Use Results of PingEvent + + +diff --git a/src/main/java/net/minecraft/server/PendingConnection.java b/src/main/java/net/minecraft/server/PendingConnection.java +index 2da1a4a..14eed05 100644 +--- a/src/main/java/net/minecraft/server/PendingConnection.java ++++ b/src/main/java/net/minecraft/server/PendingConnection.java +@@ -155,7 +155,7 @@ public class PendingConnection extends Connection { + // CraftBukkit + s = pingEvent.getMotd() + "\u00A7" + playerlist.getPlayerCount() + "\u00A7" + pingEvent.getMaxPlayers(); + } else { +- List list = Arrays.asList(new Serializable[] { Integer.valueOf(1), Integer.valueOf(73), this.server.getVersion(), this.server.getMotd(), Integer.valueOf(playerlist.getPlayerCount()), Integer.valueOf(playerlist.getMaxPlayers())}); ++ List list = Arrays.asList(new Serializable[] { Integer.valueOf(1), Integer.valueOf(73), this.server.getVersion(), pingEvent.getMotd(), Integer.valueOf(playerlist.getPlayerCount()), pingEvent.getMaxPlayers()}); + + Object object; + +-- +1.8.1.2 +