mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-02 15:43:23 +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");
|
user.sendMessage("commands.island.team.coop.cannot-coop-yourself");
|
||||||
return false;
|
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");
|
user.sendMessage("commands.island.team.coop.already-has-rank");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user