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

Limit tnt disable on /nuke to 10s

This commit is contained in:
KHobbits
2012-11-04 02:18:51 +00:00
parent f85bbbf80e
commit d7559683ab

View File

@@ -24,13 +24,13 @@ public class TNTExplodeListener implements Listener, Runnable
if (!enabled) if (!enabled)
{ {
enabled = true; enabled = true;
timer = ess.scheduleSyncDelayedTask(this, 1000); timer = ess.scheduleSyncDelayedTask(this, 200);
return; return;
} }
if (timer != -1) if (timer != -1)
{ {
ess.getScheduler().cancelTask(timer); ess.getScheduler().cancelTask(timer);
timer = ess.scheduleSyncDelayedTask(this, 1000); timer = ess.scheduleSyncDelayedTask(this, 200);
} }
} }