fix: Island settings/permissions not saved to the correct key (#40)

Island settings were not being saved because the role keys of the island settings were not called correctly.
This commit is contained in:
Ahmet Hakan 2024-04-11 12:00:48 +03:00 committed by GitHub
parent 5bcfbde8c4
commit a48aa0cec8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -918,7 +918,7 @@ public class Island {
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());
}
}