mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-18 20:41:37 +02:00
New perm: essentials.kit.exemptdelay
Allows you to exempt from kit delays.
This commit is contained in:
@@ -39,6 +39,10 @@ public class Kit
|
|||||||
|
|
||||||
public static void checkTime(final User user, final String kitName, final Map<String, Object> els) throws NoChargeException
|
public static void checkTime(final User user, final String kitName, final Map<String, Object> els) throws NoChargeException
|
||||||
{
|
{
|
||||||
|
if (user.isAuthorized("essentials.kit.exemptdelay")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final Calendar time = new GregorianCalendar();
|
final Calendar time = new GregorianCalendar();
|
||||||
|
|
||||||
// Take the current time, and remove the delay from it.
|
// Take the current time, and remove the delay from it.
|
||||||
|
Reference in New Issue
Block a user