1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-08 15:46:54 +02:00

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

f930ff48a2
This commit is contained in:
Chris Ward
2013-01-09 23:15:19 +11:00
parent d0237a7fb4
commit f47c504202

View File

@@ -1,5 +1,6 @@
package net.ess3.signs.signs;
import static net.ess3.I18n._;
import java.util.Locale;
import net.ess3.api.ChargeException;
import net.ess3.api.IEssentials;
@@ -72,6 +73,9 @@ public class SignKit extends EssentialsSign
}
return true;
}
return false;
else
{
throw new SignException(_("noKitPermission", "essentials.kits." + kitName));
}
}
}