summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2011-10-26 06:02:54 +0100
committerKHobbits <rob@khobbits.co.uk>2011-10-26 06:02:54 +0100
commit7895a2fc5aca61231c0489d174324fb2acb05f65 (patch)
treeb61e90ab7a686bea23aaf9e16a1fb01e5fb274f4
parenteaad3f03503a0f9d9bd29c04ad3bc16a1e8dc9fb (diff)
downloadEssentials-7895a2fc5aca61231c0489d174324fb2acb05f65.tar
Essentials-7895a2fc5aca61231c0489d174324fb2acb05f65.tar.gz
Essentials-7895a2fc5aca61231c0489d174324fb2acb05f65.tar.lz
Essentials-7895a2fc5aca61231c0489d174324fb2acb05f65.tar.xz
Essentials-7895a2fc5aca61231c0489d174324fb2acb05f65.zip
Fixing invsee error.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
index 07710d40a..2a730b533 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java
@@ -31,7 +31,8 @@ public class Commandinvsee extends EssentialsCommand
{
invUser.getInventory().setContents(user.getSavedInventory());
user.setSavedInventory(null);
- throw new Exception(Util.i18n("invRestored"));
+ user.sendMessage(Util.i18n("invRestored"));
+ throw new NoChargeException();
}
if (user.getSavedInventory() == null)