1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-25 07:30:56 +02:00

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 d415aa7cf2
commit bdeb93a8d7

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