diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/EcoBoss.java b/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/EcoBoss.java index 0d9d840..ee99878 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/EcoBoss.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecobosses/bosses/EcoBoss.java @@ -543,7 +543,12 @@ public class EcoBoss extends PluginDependent { this.effectNames = new ArrayList<>(); for (String string : this.getConfig().getStrings("effects")) { String effectName = string.split(":")[0]; - List args = Arrays.asList(string.replace(effectName + ":", "").split(":")); + List args = new ArrayList<>(Arrays.asList(string.replace(effectName + ":", "").split(":"))); + if (args.contains("mythicmobs")) { + String newArg = "mythicmobs:" + args.get(args.indexOf("mythicmobs")+1); + args.set(args.indexOf("mythicmobs"), newArg); + args.remove(args.get(args.indexOf(newArg)+1)); + } this.effectNames.add(new ArgumentedEffectName(effectName, args)); }