From 15abd09acdb1637d4b14ef91b2bc310b7a90f4d0 Mon Sep 17 00:00:00 2001 From: ASangarin Date: Wed, 14 Oct 2020 00:30:17 +0200 Subject: [PATCH] Anti-Cheat Compatability, finishing polish --- .../net/Indyuce/mmocore/comp/mythicmobs/MythicMobSkill.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobSkill.java b/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobSkill.java index ada4fac3..a389b809 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobSkill.java +++ b/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/MythicMobSkill.java @@ -56,7 +56,7 @@ public class MythicMobSkill extends Skill { if (config.isConfigurationSection("disable-anti-cheat")) for(String key : config.getConfigurationSection("").getKeys(false)) { - Optional optional = Enums.getIfPresent(CheatType.class, ""); + Optional optional = Enums.getIfPresent(CheatType.class, key.toUpperCase()); if(optional.isPresent() && config.isInt("disable-anti-cheat." + key)) antiCheat.put(optional.get(), config.getInt("disable-anti-cheat." + key)); else MMOCore.log(Level.WARNING, "Invalid Anti-Cheat configuration for '" + id + "'!");