Paper/patches/server/0135-Add-configuration-option-to-prevent-player-names-fro.patch

23 lines
949 B
Diff
Raw Normal View History

2021-06-11 14:02:28 +02:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
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/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2023-03-14 19:36:39 +01:00
index 9044c35ab2d747c89312c2d98fe4c910ddd1365b..3aabd7aaad60c157740d12932d0cb071ae259c21 100644
2021-06-11 14:02:28 +02:00
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2023-03-14 19:36:39 +01:00
@@ -2589,5 +2589,10 @@ public final class CraftServer implements Server {
2021-06-11 14:02:28 +02:00
commandMap.registerServerAliases();
return true;
}
+
+ @Override
+ public boolean suggestPlayerNamesWhenNullTabCompletions() {
+ return io.papermc.paper.configuration.GlobalConfiguration.get().commands.suggestPlayerNamesWhenNullTabCompletions;
2021-06-11 14:02:28 +02:00
+ }
// Paper end
}