diff options
author | Aikar <[email protected]> | 2016-10-19 23:38:18 -0400 |
---|---|---|
committer | Aikar <[email protected]> | 2016-10-19 23:38:18 -0400 |
commit | 64e537e63cc322154e1ed366d4b1c01f706df374 (patch) | |
tree | 0f09c3b2c0080c2bff5f4f188c84c24f628fd0e3 | |
parent | 3407aa32853936155ae041fbbea30f2ee1760fb8 (diff) | |
download | Paper-64e537e63cc322154e1ed366d4b1c01f706df374.tar.gz Paper-64e537e63cc322154e1ed366d4b1c01f706df374.zip |
Revert "Option to hide plugins from the Query Protocol"
This already exists
This reverts commit 3407aa32853936155ae041fbbea30f2ee1760fb8.
-rw-r--r-- | Spigot-Server-Patches/0180-Option-to-hide-plugins-from-Query-Protocol.patch | 36 |
1 files changed, 0 insertions, 36 deletions
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 8a5d4d82f6..0000000000 --- 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 <[email protected]> -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 - |