2020-03-10 11:01:15 +00:00
|
|
|
From 72467495d3d17355d11889a3c33049bdf745610e 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
|
2020-01-22 02:02:07 +00:00
|
|
|
index 5a83fc21c..295b8390c 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
|
2019-05-06 07:20:16 +00:00
|
|
|
@@ -259,4 +259,9 @@ public class PaperConfig {
|
2019-04-27 06:26:04 +00:00
|
|
|
flyingKickPlayerMessage = getString("messages.kick.flying-player", flyingKickPlayerMessage);
|
|
|
|
flyingKickVehicleMessage = getString("messages.kick.flying-vehicle", flyingKickVehicleMessage);
|
2017-06-09 14:29:59 +00:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ 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
|
2020-03-10 11:01:15 +00:00
|
|
|
index 8f7b7e67f..2e0f443d9 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
|
2020-03-10 11:01:15 +00:00
|
|
|
@@ -2137,5 +2137,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
|
|
|
|
}
|
|
|
|
--
|
2020-02-02 11:53:48 +00:00
|
|
|
2.25.0
|
2017-06-09 14:29:59 +00:00
|
|
|
|