Skip to content

Commit

Permalink
Update Island.java
Browse files Browse the repository at this point in the history
Island settings were not being saved because the role keys of the island settings were not called correctly.
  • Loading branch information
AhmHkn0 authored Apr 10, 2024
1 parent bd848cc commit 06f4368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/craftaro/skyblock/island/Island.java
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ public synchronized void save() {

for (Entry<IslandRole, List<IslandPermission>> entry : this.islandPermissions.entrySet()) {
for (IslandPermission permission : entry.getValue()) {
configLoad.set("Settings." + entry.getKey() + "." + permission.getPermission().getName(), permission.getStatus());
configLoad.set("Settings." + entry.getKey().getFriendlyName() + "." + permission.getPermission().getName(), permission.getStatus());
}
}

Expand Down

0 comments on commit 06f4368

Please sign in to comment.