2019-03-20 02:46:00 +01:00
|
|
|
From 3282d3a441567161f7a424959345ac7695ebff22 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-03-20 02:46:00 +01:00
|
|
|
index a4853e04b..0f38b1fb4 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-12-15 02:17:27 +01:00
|
|
|
@@ -280,4 +280,9 @@ public class PaperConfig {
|
|
|
|
maxPlayerAutoSavePerTick = (playerAutoSaveRate == -1 || playerAutoSaveRate > 100) ? 10 : 20;
|
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-03-20 02:46:00 +01:00
|
|
|
index 02d2b80b9..e238e760a 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-02-22 04:41:20 +01:00
|
|
|
@@ -2140,5 +2140,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-03-20 02:46:00 +01:00
|
|
|
2.21.0
|
2017-06-09 16:29:59 +02:00
|
|
|
|