mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-27 13:15:28 +01:00
Fix player not being expelled from visitors if in team (#1670)
* Fix player not being expelled from visitors if in team * Error on arguments
This commit is contained in:
parent
bb7ed2b85c
commit
455e662d22
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user