9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2025-12-27 18:59:10 +00:00

Correctly close Languagy file watcher

This commit is contained in:
SamB440
2022-04-13 17:24:09 +01:00
parent ea3374caac
commit eb045f96c1

View File

@@ -120,6 +120,8 @@ public final class RPGRegions extends JavaPlugin implements IRPGRegionsAPI {
@Override
public void onDisable() {
translator.close();
if (managers == null || managers.getRegionsCache() == null || managers.getStorageManager() == null) {
getLogger().warning("Unable to save data as managers were null");
} else {