Improve backup functionality (#3258)

Waits for an ongoing backup task to complete in onDisable (and yells at users for `/reload`ing), and adds a `backup.always-run` option to enable always running backups even when no users have logged in since the last backup.

Fixes #3257 and closes #2646.
This commit is contained in:
Josh Roy 2020-05-11 11:55:31 -04:00 committed by GitHub
parent 61d0ed3f01
commit 8b71437264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 42 additions and 4 deletions

View file

@ -425,6 +425,11 @@ public class Settings implements net.ess3.api.ISettings {
return config.getString("backup.command", null);
}
@Override
public boolean isAlwaysRunBackup() {
return config.getBoolean("backup.always-run", false);
}
private final Map<String, String> chatFormats = Collections.synchronizedMap(new HashMap<>());
@Override