Fix exception in /heal, "playernotfound" should be exception.

This commit is contained in:
Necrodoom 2013-03-19 22:40:47 +02:00 committed by KHobbits
parent 093611fb2a
commit 5af1f50b65

View file

@ -53,8 +53,7 @@ public class Commandheal extends EssentialsCommand
final List<Player> players = server.matchPlayer(name); final List<Player> players = server.matchPlayer(name);
if (players.isEmpty()) if (players.isEmpty())
{ {
sender.sendMessage(_("playerNotFound")); throw new Exception(_("playerNotFound"));
return;
} }
for (Player p : players) for (Player p : players)
{ {