aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0136-Add-configuration-option-to-prevent-player-names-fro.patch
diff options
context:
space:
mode:
authorJake <[email protected]>2021-11-29 23:32:30 -0800
committerMiniDigger | Martin <[email protected]>2021-11-30 19:26:33 +0100
commitd8d7f523247bc84ecaedccf2bae29da4c18af4f2 (patch)
treeb1695d85949cde1da6d3d1562f494f1fc74d863f /patches/server/0136-Add-configuration-option-to-prevent-player-names-fro.patch
parent5ff792342c3a80ac8044340ac1e44c763ed38f1d (diff)
downloadPaper-d8d7f523247bc84ecaedccf2bae29da4c18af4f2.tar.gz
Paper-d8d7f523247bc84ecaedccf2bae29da4c18af4f2.zip
another patch
Diffstat (limited to 'patches/server/0136-Add-configuration-option-to-prevent-player-names-fro.patch')
-rw-r--r--patches/server/0136-Add-configuration-option-to-prevent-player-names-fro.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/patches/server/0136-Add-configuration-option-to-prevent-player-names-fro.patch b/patches/server/0136-Add-configuration-option-to-prevent-player-names-fro.patch
new file mode 100644
index 0000000000..7e85cdf6ca
--- /dev/null
+++ b/patches/server/0136-Add-configuration-option-to-prevent-player-names-fro.patch
@@ -0,0 +1,36 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: kashike <[email protected]>
+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
+index 5e23ff0c5e44427a996281ae42fc12c28649e158..7a69f9d9bb9c05474d8fbab22d626529a41a66a1 100644
+--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
++++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
+@@ -280,4 +280,9 @@ public class PaperConfig {
+ flyingKickPlayerMessage = getString("messages.kick.flying-player", flyingKickPlayerMessage);
+ flyingKickVehicleMessage = getString("messages.kick.flying-vehicle", flyingKickVehicleMessage);
+ }
++
++ 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
+index 18c04dd01a57693ddf7befe31645166442b02011..67c4a3da2d896ef4a82dd666b7d51fb8d6c0be67 100644
+--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+@@ -2525,5 +2525,10 @@ public final class CraftServer implements Server {
+ commandMap.registerServerAliases();
+ return true;
+ }
++
++ @Override
++ public boolean suggestPlayerNamesWhenNullTabCompletions() {
++ return com.destroystokyo.paper.PaperConfig.suggestPlayersWhenNullTabCompletions;
++ }
+ // Paper end
+ }