1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-26 16:04:27 +02:00

Throw an error if user doesn't have permission to use kit sign.

This commit is contained in:
KHobbits
2013-01-05 07:39:32 +00:00
parent a85b8c5d00
commit 70f479d7d1

View File

@@ -1,5 +1,6 @@
package com.earth2me.essentials.signs;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.*;
import com.earth2me.essentials.commands.NoChargeException;
import java.util.List;
@@ -73,6 +74,9 @@ public class SignKit extends EssentialsSign
}
return true;
}
return false;
else
{
throw new SignException(_("noKitPermission", "essentials.kits." + kitName));
}
}
}