mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-31 07:40:16 +01:00
Have TickTask be locked from the start.
This commit is contained in:
parent
e5686d694b
commit
6256703d01
@ -16,7 +16,7 @@ import fr.neatmonster.nocheatplus.checks.access.ICheckData;
|
|||||||
import fr.neatmonster.nocheatplus.players.DataManager;
|
import fr.neatmonster.nocheatplus.players.DataManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Task to run every tick, to update permissions and execute actions, and maybe later for extended lag measurement.
|
* Task to run every tick, to update permissions and execute actions, and for lag measurement.
|
||||||
*
|
*
|
||||||
* <hr>
|
* <hr>
|
||||||
* The permissions updates and actions execution is meant for use by the asynchronously run checks, not for normal use.
|
* The permissions updates and actions execution is meant for use by the asynchronously run checks, not for normal use.
|
||||||
@ -76,7 +76,7 @@ public class TickTask implements Runnable {
|
|||||||
protected static long timeLast = 0;
|
protected static long timeLast = 0;
|
||||||
|
|
||||||
/** Lock flag set on disable. */
|
/** Lock flag set on disable. */
|
||||||
protected static boolean locked = false;
|
protected static boolean locked = true;
|
||||||
|
|
||||||
static{
|
static{
|
||||||
for (int i = 0; i < spikeDurations.length; i++){
|
for (int i = 0; i < spikeDurations.length; i++){
|
||||||
|
Loading…
Reference in New Issue
Block a user