diff options
author | Nassim Jahnke <[email protected]> | 2022-06-07 22:12:48 +0200 |
---|---|---|
committer | Nassim Jahnke <[email protected]> | 2022-06-07 22:12:48 +0200 |
commit | cac4deb8823658f5e86627ce0d8c58c92fee303d (patch) | |
tree | 726f37a47ffc4356db3162a0b43c56dfb63d5ec9 /patches/server/0132-Add-configuration-option-to-prevent-player-names-fro.patch | |
parent | 1669c6b097c45823868edc49dac64b329c48275f (diff) | |
download | Paper-cac4deb8823658f5e86627ce0d8c58c92fee303d.tar.gz Paper-cac4deb8823658f5e86627ce0d8c58c92fee303d.zip |
More more more patches
Diffstat (limited to 'patches/server/0132-Add-configuration-option-to-prevent-player-names-fro.patch')
-rw-r--r-- | patches/server/0132-Add-configuration-option-to-prevent-player-names-fro.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/patches/server/0132-Add-configuration-option-to-prevent-player-names-fro.patch b/patches/server/0132-Add-configuration-option-to-prevent-player-names-fro.patch new file mode 100644 index 0000000000..650fa3ffae --- /dev/null +++ b/patches/server/0132-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 2440e81ef23c3b8c91ca5bdf13347f13cb66f549..2a4aacd2461401a109d749eee262813367fe4a70 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 ae1cfe01f285a773ab9d4bdb9b0dd897615f0b82..2d4292fa7e474d81ce974cfeda0cf56a2b5a19f2 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java ++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java +@@ -2549,5 +2549,10 @@ public final class CraftServer implements Server { + commandMap.registerServerAliases(); + return true; + } ++ ++ @Override ++ public boolean suggestPlayerNamesWhenNullTabCompletions() { ++ return com.destroystokyo.paper.PaperConfig.suggestPlayersWhenNullTabCompletions; ++ } + // Paper end + } |