diff --git a/src/main/java/dev/sefiraat/netheopoiesis/implementation/commands/NetheoCommands.java b/src/main/java/dev/sefiraat/netheopoiesis/implementation/commands/NetheoCommands.java index ca1e5bf..afff3d4 100644 --- a/src/main/java/dev/sefiraat/netheopoiesis/implementation/commands/NetheoCommands.java +++ b/src/main/java/dev/sefiraat/netheopoiesis/implementation/commands/NetheoCommands.java @@ -54,10 +54,10 @@ public void viewMobCaps(CommandSender sender) { @CommandPermission("netheopoiesis.admin.mobcaps") @CommandCompletion("@MOB_CAPS") public void purgeMobCap(CommandSender sender, String mobCapType) { - final MobCap cap = MobManager.getInstance().getMobCap(MobCapType.valueOf(mobCapType)); + final MobCap mobCap = MobManager.getInstance().getMobCap(MobCapType.valueOf(mobCapType)); final String message = "Mob Cap Purged"; - cap.killAllMobs(); + mobCap.killAllMobs(); if (sender instanceof Player player) { player.sendMessage(Theme.SUCCESS.apply(message)); } else {