mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Limit tnt disable on /nuke to 10s
This commit is contained in:
parent
9fcb412774
commit
c8f8680ce9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue