2018-09-26 06:57:59 +02:00
|
|
|
From 7068366743806ceade7e865f3f40d8932c9ab510 Mon Sep 17 00:00:00 2001
|
2017-06-09 16:29:59 +02:00
|
|
|
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
|
2018-09-26 06:57:59 +02:00
|
|
|
index eb1b803c4d..5eca32c341 100644
|
2017-06-09 16:29:59 +02:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
2018-09-26 06:57:59 +02:00
|
|
|
@@ -280,4 +280,9 @@ public class PaperConfig {
|
2017-06-09 16:29:59 +02:00
|
|
|
}
|
|
|
|
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
|
2018-09-26 06:57:59 +02:00
|
|
|
index 73ab254aa0..849dd19dc0 100644
|
2017-06-09 16:29:59 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2018-09-24 11:41:32 +02:00
|
|
|
@@ -2051,5 +2051,10 @@ public final class CraftServer implements Server {
|
2017-06-09 16:29:59 +02:00
|
|
|
commandMap.registerServerAliases();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean suggestPlayerNamesWhenNullTabCompletions() {
|
|
|
|
+ return com.destroystokyo.paper.PaperConfig.suggestPlayersWhenNullTabCompletions;
|
|
|
|
+ }
|
|
|
|
// Paper end
|
|
|
|
}
|
|
|
|
--
|
2018-09-24 11:41:32 +02:00
|
|
|
2.19.0
|
2017-06-09 16:29:59 +02:00
|
|
|
|