mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 11:45:31 +01:00
Use .equals() in #isBanned(UUID) in Island
This commit is contained in:
parent
12cac6b3aa
commit
f33fa2477a
@ -438,7 +438,7 @@ public class Island implements DataObject {
|
|||||||
* @return Returns true if target is banned on this island
|
* @return Returns true if target is banned on this island
|
||||||
*/
|
*/
|
||||||
public boolean isBanned(UUID targetUUID) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user