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