mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Fixes Necrodoom's code Needs more exception
This commit is contained in:
parent
e63276242c
commit
8f8fc4a08d
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ public class Commandheal extends EssentialsCommand
|
||||||
healOtherPlayers(server, sender, args[0]);
|
healOtherPlayers(server, sender, args[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void healOtherPlayers(final Server server, final CommandSender sender, final String name)
|
private void healOtherPlayers(final Server server, final CommandSender sender, final String name) throws Exception
|
||||||
{
|
{
|
||||||
final List<Player> players = server.matchPlayer(name);
|
final List<Player> players = server.matchPlayer(name);
|
||||||
if (players.isEmpty())
|
if (players.isEmpty())
|
||||||
|
@ -67,7 +67,7 @@ public class Commandheal extends EssentialsCommand
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void healPlayer(final Player player)
|
private void healPlayer(final Player player) throws Exception
|
||||||
{
|
{
|
||||||
if (player.getHealth() == 0)
|
if (player.getHealth() == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue