Fix coop settings not working

This commit is contained in:
Fabrizio La Rosa 2020-06-18 14:52:32 +02:00
parent b58eef400d
commit 9d9fb48f0f

View File

@ -537,6 +537,9 @@ public class Island {
}
public IslandRole getRole(OfflinePlayer player) {
if(isCoopPlayer(player.getUniqueId())){
return IslandRole.Coop; // TODO Rework Coop status - Fabrimat
}
for (IslandRole role : IslandRole.values())
if (getRole(role).contains(player.getUniqueId()))
return role;