From 455e662d224288fbf029baa30091f25782863673 Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 3 Feb 2021 02:16:42 +0100 Subject: [PATCH] Fix player not being expelled from visitors if in team (#1670) * Fix player not being expelled from visitors if in team * Error on arguments --- .../bentobox/api/commands/island/IslandExpelCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandExpelCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandExpelCommand.java index 4161ba651..cc957cb09 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandExpelCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandExpelCommand.java @@ -119,7 +119,7 @@ public class IslandExpelCommand extends CompositeCommand { target.sendMessage("commands.island.expel.player-expelled-you", TextVariables.NAME, user.getName()); island.getWorld().playSound(target.getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 1F, 1F); - if (getIslands().hasIsland(getWorld(), target)) { + if (getIslands().hasIsland(getWorld(), target) || getIslands().inTeam(getWorld(), target.getUniqueId())) { // Success user.sendMessage(SUCCESS, TextVariables.NAME, target.getName()); // Teleport home