mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-05 12:10:12 +08:00
Fix age old bug with active status in Backup manager (#3262)
I cannot even reproduce this error but I guess one other person can. Fuck this stupid feature
This commit is contained in:
parent
a3a50e9cd5
commit
63dd5f3f64
@ -69,12 +69,12 @@ public class Backup implements Runnable {
|
||||
if (active) {
|
||||
return;
|
||||
}
|
||||
active = true;
|
||||
taskLock = new CompletableFuture<>();
|
||||
final String command = ess.getSettings().getBackupCommand();
|
||||
if (command == null || "".equals(command)) {
|
||||
return;
|
||||
}
|
||||
active = true;
|
||||
taskLock = new CompletableFuture<>();
|
||||
if ("save-all".equalsIgnoreCase(command)) {
|
||||
final CommandSender cs = server.getConsoleSender();
|
||||
server.dispatchCommand(cs, "save-all");
|
||||
|
Loading…
Reference in New Issue
Block a user