From e56d4c0e42bf45e9b1f7f0f37e80a17f961191ff Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 29 Mar 2021 20:52:16 +0200 Subject: [PATCH] Fix case sensitive TabCompletes --- SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java index 0a9cb84..93f6ec0 100644 --- a/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java +++ b/SpigotCore_Main/src/de/steamwar/command/SWCommandUtils.java @@ -47,7 +47,7 @@ public class SWCommandUtils { static final BiFunction>, String, Enum> ENUM_MAPPER = (enumClass, s) -> { Enum[] enums = enumClass.getEnumConstants(); for (Enum e : enums) { - if (e.name().equals(s)) return e; + if (e.name().equalsIgnoreCase(s)) return e; } return null; };