mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 00:55:10 +02:00
Fix exception in /heal, "playernotfound" should be exception.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user