From d78082006abe673285a86d6d1df23e9e2c24a81b Mon Sep 17 00:00:00 2001 From: Sefiraat Date: Sat, 18 Jun 2022 21:42:48 +0100 Subject: [PATCH] Update src/main/java/dev/sefiraat/netheopoiesis/implementation/commands/NetheoCommands.java Co-authored-by: J3fftw <44972470+J3fftw1@users.noreply.github.com> --- .../netheopoiesis/implementation/commands/NetheoCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {