mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-24 16:32:35 +01:00
Fix exception in /heal, "playernotfound" should be exception.
This commit is contained in:
parent
bc892a4b02
commit
9a350c5150
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user