mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-22 10:15:54 +01:00
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:
parent
5bcfbde8c4
commit
a48aa0cec8
@ -918,7 +918,7 @@ public class Island {
|
|||||||
|
|
||||||
for (Entry<IslandRole, List<IslandPermission>> entry : this.islandPermissions.entrySet()) {
|
for (Entry<IslandRole, List<IslandPermission>> entry : this.islandPermissions.entrySet()) {
|
||||||
for (IslandPermission permission : entry.getValue()) {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user