diff options
author | GunfighterJ <joseph.jenniges@gmail.com> | 2013-02-18 09:22:31 -0600 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2013-02-18 15:25:09 +0000 |
commit | 8f8fc4a08d8342e208887b3e93454d23dd5f9698 (patch) | |
tree | 4d8e7a5eaf7c3b18693a5fd372ef163978137e4e | |
parent | e63276242ca4c8c16cf46eba020f9bd436f94773 (diff) | |
download | Essentials-8f8fc4a08d8342e208887b3e93454d23dd5f9698.tar Essentials-8f8fc4a08d8342e208887b3e93454d23dd5f9698.tar.gz Essentials-8f8fc4a08d8342e208887b3e93454d23dd5f9698.tar.lz Essentials-8f8fc4a08d8342e208887b3e93454d23dd5f9698.tar.xz Essentials-8f8fc4a08d8342e208887b3e93454d23dd5f9698.zip |
Fixes Necrodoom's code Needs more exception
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandheal.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandheal.java b/Essentials/src/com/earth2me/essentials/commands/Commandheal.java index 55045ecf3..a7f812a02 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandheal.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandheal.java @@ -48,7 +48,7 @@ public class Commandheal extends EssentialsCommand 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); 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) { |