Skip to content

Commit

Permalink
Also import region owners
Browse files Browse the repository at this point in the history
  • Loading branch information
T14D3 committed Jan 11, 2025
1 parent bcb2933 commit 832e1af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public void importRegions() {
Location min = BukkitAdapter.adapt(world, region.getMinimumPoint());
Location max = BukkitAdapter.adapt(world, region.getMaximumPoint());
Map<UUID, Map<String, String>> members = new HashMap<>();
Map<String, String> tempPerms = Map.of("role", "member");

region.getMembers().getUniqueIds().forEach(uuid -> members.put(uuid, tempPerms));
region.getMembers().getUniqueIds().forEach(uuid -> members.put(uuid, Map.of("role", "member")));
region.getOwners().getUniqueIds().forEach(uuid -> members.put(uuid, Map.of("role", "owner")));

Region newRegion = plugin.getRegionManager().createNewRegion(key, name, min, max, members);
plugin.getRegionManager().addRegion(newRegion);
Expand Down

0 comments on commit 832e1af

Please sign in to comment.