mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-03 01:10:37 +01:00
6f2009754d
At the time this was re-added, there was concern around how the JIT would handle the system property that enabled it. This shouldn't be a problem, and as such we no longer need to block access to it. The Vanilla Method Profiler will not provide much to most users however there is no harm in providing it as an option. For most users, the recommended and supported method for determining performance issues with Paper will continue to be Timings.
40 lines
1.6 KiB
Diff
40 lines
1.6 KiB
Diff
From bc818c7595edb2ea72a1fb84bd4ecfb1a623a92b Mon Sep 17 00:00:00 2001
|
|
From: kashike <kashike@vq.lc>
|
|
Date: Fri, 9 Jun 2017 07:24:34 -0700
|
|
Subject: [PATCH] Add configuration option to prevent player names from being
|
|
suggested
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
index ea6fcb39..dbafef02 100644
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
@@ -271,4 +271,9 @@ public class PaperConfig {
|
|
}
|
|
removeInvalidStatistics = getBoolean("settings.remove-invalid-statistics", false);
|
|
}
|
|
+
|
|
+ public static boolean suggestPlayersWhenNullTabCompletions = true;
|
|
+ private static void suggestPlayersWhenNull() {
|
|
+ suggestPlayersWhenNullTabCompletions = getBoolean("settings.suggest-player-names-when-null-tab-completions", suggestPlayersWhenNullTabCompletions);
|
|
+ }
|
|
}
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
index 41357cb0..27c6cadd 100644
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
@@ -1908,5 +1908,10 @@ public final class CraftServer implements Server {
|
|
commandMap.registerServerAliases();
|
|
return true;
|
|
}
|
|
+
|
|
+ @Override
|
|
+ public boolean suggestPlayerNamesWhenNullTabCompletions() {
|
|
+ return com.destroystokyo.paper.PaperConfig.suggestPlayersWhenNullTabCompletions;
|
|
+ }
|
|
// Paper end
|
|
}
|
|
--
|
|
2.14.3
|
|
|