mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-06 20:43:11 +00:00
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:
parent
61d0ed3f01
commit
8b71437264
6 changed files with 42 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue