mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-29 19:59:11 +00:00
Close adventure on disable
This commit is contained in:
@@ -161,10 +161,10 @@ public final class RPGRegions extends JavaPlugin implements IRPGRegionsAPI {
|
||||
managers.getRegionsCache().getConfiguredRegions().forEach((id, region) -> region.save(this));
|
||||
}
|
||||
|
||||
// if (this.adventure != null) {
|
||||
// this.adventure.close();
|
||||
// this.adventure = null;
|
||||
// }
|
||||
if (this.adventure != null) {
|
||||
this.adventure.close();
|
||||
this.adventure = null;
|
||||
}
|
||||
|
||||
RPGRegionsAPI.setAPI(null);
|
||||
DB.close();
|
||||
|
||||
Reference in New Issue
Block a user