mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-30 14:13:29 +01:00
Fix coop settings not working
This commit is contained in:
parent
b58eef400d
commit
9d9fb48f0f
@ -537,6 +537,9 @@ public class Island {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public IslandRole getRole(OfflinePlayer player) {
|
public IslandRole getRole(OfflinePlayer player) {
|
||||||
|
if(isCoopPlayer(player.getUniqueId())){
|
||||||
|
return IslandRole.Coop; // TODO Rework Coop status - Fabrimat
|
||||||
|
}
|
||||||
for (IslandRole role : IslandRole.values())
|
for (IslandRole role : IslandRole.values())
|
||||||
if (getRole(role).contains(player.getUniqueId()))
|
if (getRole(role).contains(player.getUniqueId()))
|
||||||
return role;
|
return role;
|
||||||
|
Loading…
Reference in New Issue
Block a user