2019-08-05 18:35:40 +02:00
|
|
|
From 047c0fb7c02a50bdd6e251d0d179adf2210b76c4 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
|
2019-07-20 06:01:24 +02:00
|
|
|
index b5a50afd24..11d2a1013b 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
|
2019-05-06 09:20:16 +02:00
|
|
|
@@ -259,4 +259,9 @@ public class PaperConfig {
|
2019-04-27 08:26:04 +02:00
|
|
|
flyingKickPlayerMessage = getString("messages.kick.flying-player", flyingKickPlayerMessage);
|
|
|
|
flyingKickVehicleMessage = getString("messages.kick.flying-vehicle", flyingKickVehicleMessage);
|
2017-06-09 16:29:59 +02: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
|
2019-08-05 18:35:40 +02:00
|
|
|
index ca6158dc73..8e6f23d278 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
|
2019-08-05 18:35:40 +02:00
|
|
|
@@ -2096,5 +2096,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
|
|
|
|
}
|
|
|
|
--
|
2019-06-22 21:04:26 +02:00
|
|
|
2.22.0
|
2017-06-09 16:29:59 +02:00
|
|
|
|