From 5af1f50b6578c463e6b44226943b233ba17c8cc5 Mon Sep 17 00:00:00 2001 From: Necrodoom Date: Tue, 19 Mar 2013 22:40:47 +0200 Subject: Fix exception in /heal, "playernotfound" should be exception. --- Essentials/src/com/earth2me/essentials/commands/Commandheal.java | 3 +-- 1 file changed, 1 insertion(+), 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 players = server.matchPlayer(name); if (players.isEmpty()) { - sender.sendMessage(_("playerNotFound")); - return; + throw new Exception(_("playerNotFound")); } for (Player p : players) { -- cgit v1.2.3