mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 03:35:11 +01:00
Fixed members not being able to set homes (#569)
#538 It happened because IslandManager#hasIsland(World,User) returns true only if island is owned by player, team members will always gets false, as they do not directly own an island.
This commit is contained in:
parent
bce30ce83d
commit
f5bbe35bd8
@ -24,7 +24,7 @@ public class IslandSethomeCommand extends ConfirmableCommand {
|
||||
@Override
|
||||
public boolean canExecute(User user, String label, List<String> args) {
|
||||
// Check island
|
||||
if (!getPlugin().getIslands().hasIsland(getWorld(), user)) {
|
||||
if (!getPlugin().getIslands().hasIsland(getWorld(), user) && !getPlugin().getIslands().inTeam(getWorld(), user.getUniqueId())) {
|
||||
user.sendMessage("general.errors.no-island");
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user