do not start new Thread too early
This commit is contained in:
parent
05107f72e4
commit
f93bddcc1b
@ -20,12 +20,12 @@ public final class AutomaticLogDeleter extends JavaPlugin {
|
||||
@Override
|
||||
public void onDisable() {
|
||||
|
||||
new Thread(() -> {
|
||||
FileConfiguration config = getConfig();
|
||||
if (config.getBoolean("also-delete-logs-on-shutdown")) {
|
||||
FileConfiguration config = getConfig();
|
||||
if (config.getBoolean("also-delete-logs-on-shutdown")) {
|
||||
new Thread(() -> {
|
||||
deleteLogs();
|
||||
}
|
||||
}).start();
|
||||
}).start();
|
||||
}
|
||||
}
|
||||
|
||||
public void deleteLogs() {
|
||||
|
Loading…
Reference in New Issue
Block a user