From d1631a9ca4339d982356ab2872784d738e66ad6a Mon Sep 17 00:00:00 2001 From: wizjany Date: Mon, 19 Jan 2015 14:15:31 -0500 Subject: [PATCH] Restore entity counter to //remove and grammatified //butcher similarly. --- .../java/com/sk89q/worldedit/command/UtilityCommands.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java index 3ed223f53..7b79436f5 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java @@ -436,11 +436,7 @@ public class UtilityCommands { killed += visitor.getAffected(); } - if (radius < 0) { - actor.print("Killed " + killed + " mobs."); - } else { - actor.print("Killed " + killed + " mobs in a radius of " + radius + "."); - } + actor.print("Killed " + killed + (killed != 1 ? " mobs" : "mob") + (radius < 0 ? "" : "in a radius of " + radius) + "."); if (editSession != null) { session.remember(editSession); @@ -500,7 +496,7 @@ public class UtilityCommands { removed += visitor.getAffected(); } - actor.print("Marked " + (removed != 1 ? "entities" : "entity") + " for removal."); + actor.print("Marked " + removed + (removed != 1 ? " entities" : " entity") + " for removal."); if (editSession != null) { session.remember(editSession);