From 8f8fc4a08d8342e208887b3e93454d23dd5f9698 Mon Sep 17 00:00:00 2001 From: GunfighterJ Date: Mon, 18 Feb 2013 09:22:31 -0600 Subject: [PATCH] Fixes Necrodoom's code Needs more exception --- .../src/com/earth2me/essentials/commands/Commandheal.java | 4 ++-- 1 file 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 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) {