Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/commands' into feature/c…
Browse files Browse the repository at this point in the history
…ommands
  • Loading branch information
Sefiraat committed Jun 18, 2022
2 parents 529f8ec + d780820 commit 6c9fb04
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,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 6c9fb04

Please sign in to comment.