mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 14:33:09 +01:00
Revert "Option to hide plugins from the Query Protocol"
This already exists
This reverts commit d6a9c326c7
.
This commit is contained in:
parent
d6a9c326c7
commit
59eb1231b5
1 changed files with 0 additions and 34 deletions
|
@ -1,34 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
||||
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
||||
@@ -0,0 +0,0 @@ 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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||
+++ b/src/main/java/net/minecraft/server/DedicatedServer.java
|
||||
@@ -0,0 +0,0 @@ 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++) {
|
||||
--
|
Loading…
Reference in a new issue