From a66372e5f79080f6cd08ff22ce36c14da96a2599 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 24 Sep 2022 11:27:25 +0200 Subject: [PATCH] Undo TypeMappers --- src/de/steamwar/bungeecore/commands/TypeMappers.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/TypeMappers.java b/src/de/steamwar/bungeecore/commands/TypeMappers.java index 8db94be..bf882fd 100644 --- a/src/de/steamwar/bungeecore/commands/TypeMappers.java +++ b/src/de/steamwar/bungeecore/commands/TypeMappers.java @@ -69,17 +69,7 @@ public class TypeMappers { @Override public Collection tabCompletes(CommandSender sender, String[] previousArguments, String s) { - if (!historic) { - List toReturn = ArenaMode.getAllChatNames(false).stream() - .map(String::toLowerCase) - .filter(s1 -> s1.startsWith(s.toLowerCase())) - .collect(Collectors.toList()); - if (toReturn.isEmpty()) { - return ArenaMode.getAllChatNames(true); - } - return toReturn; - } - return ArenaMode.getAllChatNames(true); + return ArenaMode.getAllChatNames(historic); } }; }