From 64e537e63cc322154e1ed366d4b1c01f706df374 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 19 Oct 2016 23:38:18 -0400 Subject: [PATCH] Revert "Option to hide plugins from the Query Protocol" This already exists This reverts commit 3407aa32853936155ae041fbbea30f2ee1760fb8. --- ...-to-hide-plugins-from-Query-Protocol.patch | 36 ------------------- 1 file changed, 36 deletions(-) delete mode 100644 Spigot-Server-Patches/0180-Option-to-hide-plugins-from-Query-Protocol.patch diff --git a/Spigot-Server-Patches/0180-Option-to-hide-plugins-from-Query-Protocol.patch b/Spigot-Server-Patches/0180-Option-to-hide-plugins-from-Query-Protocol.patch deleted file mode 100644 index 8a5d4d82f..000000000 --- a/Spigot-Server-Patches/0180-Option-to-hide-plugins-from-Query-Protocol.patch +++ /dev/null @@ -1,36 +0,0 @@ -From 8417c84433fe88b57d5a7e898a65c999ce1907c7 Mon Sep 17 00:00:00 2001 -From: Aikar -Date: Wed, 19 Oct 2016 23:36:48 -0400 -Subject: [PATCH] Option to hide plugins from Query Protocol - - -diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java -index 3161dad..59763b0 100644 ---- a/src/main/java/com/destroystokyo/paper/PaperConfig.java -+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java -@@ -241,4 +241,9 @@ public class PaperConfig { - flyingKickPlayerMessage = getString("messages.kick.flying-player", flyingKickPlayerMessage); - flyingKickVehicleMessage = getString("messages.kick.flying-vehicle", flyingKickVehicleMessage); - } -+ -+ public static boolean hidePluginsFromQuery = false; -+ private static void hidePluginsFromQuery() { -+ hidePluginsFromQuery = getBoolean("settings.hide-plugins-from-query", false); -+ } - } -diff --git a/src/main/java/net/minecraft/server/DedicatedServer.java b/src/main/java/net/minecraft/server/DedicatedServer.java -index e70d5c5..229b771 100644 ---- a/src/main/java/net/minecraft/server/DedicatedServer.java -+++ b/src/main/java/net/minecraft/server/DedicatedServer.java -@@ -657,7 +657,7 @@ public class DedicatedServer extends MinecraftServer implements IMinecraftServer - result.append(" on Bukkit "); - result.append(server.getBukkitVersion()); - -- if (plugins.length > 0 && server.getQueryPlugins()) { -+ if (!com.destroystokyo.paper.PaperConfig.hidePluginsFromQuery && plugins.length > 0 && server.getQueryPlugins()) { // Paper - result.append(": "); - - for (int i = 0; i < plugins.length; i++) { --- -2.10.1 -