mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-11-06 18:50:54 +01:00
Add method to empty request queues for TickTask.
This commit is contained in:
parent
2a8b6e3ad2
commit
a156d1117b
@ -190,6 +190,14 @@ public class TickTask implements Runnable {
|
||||
TickTask.locked = locked;
|
||||
}
|
||||
|
||||
/**
|
||||
* Empty queues (call after setLocked(true)
|
||||
*/
|
||||
public static void purge(){
|
||||
permissionUpdates.clear();
|
||||
delayedActions.clear();
|
||||
}
|
||||
|
||||
//////////////////////////
|
||||
// Instance methods
|
||||
//////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user