mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-08-31 09:39:32 +02:00
Lock, purge and cancel TickTask in onEnable.
This commit is contained in:
parent
ede74785d2
commit
e5686d694b
|
@ -339,6 +339,7 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
|
|||
TickTask.setLocked(true);
|
||||
TickTask.purge();
|
||||
TickTask.cancel();
|
||||
// (Keep the tick task locked!)
|
||||
|
||||
// Stop metrics task.
|
||||
if (metrics != null){
|
||||
|
@ -421,6 +422,9 @@ public class NoCheatPlus extends JavaPlugin implements NoCheatPlusAPI {
|
|||
*/
|
||||
|
||||
// Reset TickTask (just in case).
|
||||
TickTask.setLocked(true);
|
||||
TickTask.purge();
|
||||
TickTask.cancel();
|
||||
TickTask.reset();
|
||||
|
||||
// Read the configuration files.
|
||||
|
|
Loading…
Reference in New Issue
Block a user