mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 05:01:28 +00:00
Fix exception in /heal, "playernotfound" should be exception.
This commit is contained in:
parent
093611fb2a
commit
5af1f50b65
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue