Fixes Necrodoom's code Needs more exception

This commit is contained in:
GunfighterJ 2013-02-18 09:22:31 -06:00 committed by KHobbits
parent e63276242c
commit 8f8fc4a08d

View File

@ -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)
{ {