mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Do not coop already cooped player.
Fixes https://github.com/BentoBoxWorld/BentoBox/issues/1696
This commit is contained in:
parent
92332ab755
commit
f1f374c258
@ -73,7 +73,7 @@ public class IslandTeamCoopCommand extends CompositeCommand {
|
||||
user.sendMessage("commands.island.team.coop.cannot-coop-yourself");
|
||||
return false;
|
||||
}
|
||||
if (getIslands().getMembers(getWorld(), user.getUniqueId()).contains(targetUUID)) {
|
||||
if (getIslands().getMembers(getWorld(), user.getUniqueId(), RanksManager.COOP_RANK).contains(targetUUID)) {
|
||||
user.sendMessage("commands.island.team.coop.already-has-rank");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user