diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandheal.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandheal.java b/Essentials/src/com/earth2me/essentials/commands/Commandheal.java index a7f812a02..aaf9617ad 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandheal.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandheal.java @@ -53,8 +53,7 @@ public class Commandheal extends EssentialsCommand final List<Player> players = server.matchPlayer(name); if (players.isEmpty()) { - sender.sendMessage(_("playerNotFound")); - return; + throw new Exception(_("playerNotFound")); } for (Player p : players) { |