diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-08-08 00:14:07 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-08-08 00:14:07 +0100 |
commit | 5c1eea0953860c0cfc40993442a608542876ca5f (patch) | |
tree | 1f80e7c2efa97d67547b6804a286aa2eeaf50daf | |
parent | 738b895cba194bb5699769016f78bd0181dd108c (diff) | |
download | Essentials-5c1eea0953860c0cfc40993442a608542876ca5f.tar Essentials-5c1eea0953860c0cfc40993442a608542876ca5f.tar.gz Essentials-5c1eea0953860c0cfc40993442a608542876ca5f.tar.lz Essentials-5c1eea0953860c0cfc40993442a608542876ca5f.tar.xz Essentials-5c1eea0953860c0cfc40993442a608542876ca5f.zip |
Don't show two error messages on [kit] signs.
Fixes #2508
-rw-r--r-- | Essentials/src/com/earth2me/essentials/signs/SignKit.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/signs/SignKit.java b/Essentials/src/com/earth2me/essentials/signs/SignKit.java index c1a4cd0fd..148854010 100644 --- a/Essentials/src/com/earth2me/essentials/signs/SignKit.java +++ b/Essentials/src/com/earth2me/essentials/signs/SignKit.java @@ -1,6 +1,7 @@ package com.earth2me.essentials.signs; import com.earth2me.essentials.*; +import com.earth2me.essentials.commands.NoChargeException; import java.util.List; import java.util.Locale; import java.util.Map; @@ -62,6 +63,10 @@ public class SignKit extends EssentialsSign Kit.expandItems(ess, player, items); charge.charge(player); } + catch (NoChargeException ex) + { + return false; + } catch (Exception ex) { throw new SignException(ex.getMessage(), ex); |