Delete LockWithTimeReset.java
This commit is contained in:
parent
0fce0ff63e
commit
3c04aa59b1
1 changed files with 0 additions and 17 deletions
|
@ -1,17 +0,0 @@
|
|||
package me.night0721.lilase.utils;
|
||||
|
||||
|
||||
public class LockWithTimeReset {
|
||||
public boolean isLocked = false;
|
||||
|
||||
public void lock() {
|
||||
this.isLocked = true;
|
||||
new Thread(() -> {
|
||||
try {
|
||||
Thread.sleep(10000);
|
||||
this.isLocked = false;
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}).start();
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue