mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-03-13 15:19:59 +01:00
Fixed IslandNearCommand not working for island members
This commit is contained in:
parent
b0813e308d
commit
c01bb33ce1
@ -41,7 +41,7 @@ public class IslandNearCommand extends CompositeCommand {
|
||||
}
|
||||
|
||||
UUID playerUUID = user.getUniqueId();
|
||||
if (!getIslands().hasIsland(getWorld(), playerUUID)) {
|
||||
if (!getIslands().hasIsland(getWorld(), playerUUID) || !getIslands().inTeam(getWorld(), playerUUID)) {
|
||||
user.sendMessage("general.errors.no-island");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user