Skip to content

Commit

Permalink
fix: Island settings/permissions not saved to the correct key (#40)
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.
AhmHkn0 authored Apr 11, 2024
1 parent 5bcfbde commit a48aa0c
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
@@ -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());
}
}

0 comments on commit a48aa0c

Please sign in to comment.