From 52c71f2edc61628cb8d33d2c1d1a8056844c1513 Mon Sep 17 00:00:00 2001 From: Riley Park Date: Fri, 9 Jun 2017 07:24:34 -0700 Subject: [PATCH] Add configuration option to prevent player names from being suggested --- .../src/main/java/org/bukkit/craftbukkit/CraftServer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java index e6609fb27a..f578d18feb 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftServer.java @@ -2863,5 +2863,10 @@ public final class CraftServer implements Server { commandMap.registerServerAliases(); return true; } + + @Override + public boolean suggestPlayerNamesWhenNullTabCompletions() { + return io.papermc.paper.configuration.GlobalConfiguration.get().commands.suggestPlayerNamesWhenNullTabCompletions; + } // Paper end }