Don't show two error messages on [kit] signs.

Fixes #2508
This commit is contained in:
KHobbits 2012-08-08 00:14:07 +01:00
parent 738b895cba
commit 5c1eea0953

View file

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