Skip to content

Commit

Permalink
Fix saving
Browse files Browse the repository at this point in the history
  • Loading branch information
T14D3 committed Jan 11, 2025
1 parent 75bd443 commit bcb2933
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/de/t14d3/zones/RegionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public RegionManager(Zones plugin, PermissionManager permissionManager) {
}

public void saveRegions() {
regionsConfig.set("regions", null);
for (Map.Entry<String, Region> entry : loadedRegions.entrySet()) {
String key = entry.getKey();
Region region = entry.getValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void importRegions() {
}

plugin.getLogger().info("Imported " + count[0] + " regions from WorldGuard.");
plugin.getRegionManager().triggerSave();
}).start();
}
}

0 comments on commit bcb2933

Please sign in to comment.