From d43cb95d721c1af39e0a627f4cac672924c737b8 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Wed, 22 Aug 2012 00:27:33 +0100 Subject: [PATCH] New perm: essentials.kit.exemptdelay Allows you to exempt from kit delays. --- Essentials/src/com/earth2me/essentials/Kit.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/Kit.java b/Essentials/src/com/earth2me/essentials/Kit.java index 136c1d6f5..8ccef0024 100644 --- a/Essentials/src/com/earth2me/essentials/Kit.java +++ b/Essentials/src/com/earth2me/essentials/Kit.java @@ -39,6 +39,10 @@ public class Kit public static void checkTime(final User user, final String kitName, final Map els) throws NoChargeException { + if (user.isAuthorized("essentials.kit.exemptdelay")) { + return; + } + final Calendar time = new GregorianCalendar(); // Take the current time, and remove the delay from it.