mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-04 23:48:31 +01:00
Fixes Necrodoom's code Needs more exception
This commit is contained in:
parent
e63276242c
commit
8f8fc4a08d
@ -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 New Issue
Block a user