Use .equals() in #isBanned(UUID) in Island

This commit is contained in:
Florian CUNY 2018-02-07 13:33:37 +01:00
parent 12cac6b3aa
commit f33fa2477a

View File

@ -438,7 +438,7 @@ public class Island implements DataObject {
* @return Returns true if target is banned on this island
*/
public boolean isBanned(UUID targetUUID) {
return members.containsKey(targetUUID) && members.get(targetUUID) == RanksManager.BANNED_RANK;
return members.containsKey(targetUUID) && members.get(targetUUID).equals(RanksManager.BANNED_RANK);
}
/**