Skip to content

Commit

Permalink
Update src/main/java/dev/sefiraat/netheopoiesis/implementation/comman…
Browse files Browse the repository at this point in the history
…ds/NetheoCommands.java

Co-authored-by: J3fftw <[email protected]>
  • Loading branch information
Sefiraat and J3fftw1 authored Jun 18, 2022
1 parent f644ccc commit d780820
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d780820

Please sign in to comment.