2018-08-12 17:11:08 +00:00
|
|
|
From 915c25172662346c874c1ae74e73c93aa4dc2617 Mon Sep 17 00:00:00 2001
|
2017-06-09 14:29:59 +00: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-08-12 17:11:08 +00:00
|
|
|
index 9f1182c723..e97dbaf8e3 100644
|
2017-06-09 14:29:59 +00:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
2018-07-24 00:24:44 +00:00
|
|
|
@@ -275,4 +275,9 @@ public class PaperConfig {
|
2017-06-09 14:29:59 +00: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-08-12 17:11:08 +00:00
|
|
|
index 476b01f70f..17b398cde0 100644
|
2017-06-09 14:29:59 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2018-08-12 17:11:08 +00:00
|
|
|
@@ -2002,5 +2002,10 @@ public final class CraftServer implements Server {
|
2017-06-09 14:29:59 +00:00
|
|
|
commandMap.registerServerAliases();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public boolean suggestPlayerNamesWhenNullTabCompletions() {
|
|
|
|
+ return com.destroystokyo.paper.PaperConfig.suggestPlayersWhenNullTabCompletions;
|
|
|
|
+ }
|
|
|
|
// Paper end
|
|
|
|
}
|
|
|
|
--
|
2018-08-12 17:11:08 +00:00
|
|
|
2.18.0
|
2017-06-09 14:29:59 +00:00
|
|
|
|