mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-25 12:15:12 +01:00
Remove player from island, not all islands when kicked.
This commit is contained in:
parent
5834dcbb59
commit
e7055c6cba
@ -108,7 +108,7 @@ public class IslandTeamKickCommand extends ConfirmableCommand {
|
|||||||
getAddon().getDescription().getName(), TextVariables.NAME, user.getName(), TextVariables.DISPLAY_NAME,
|
getAddon().getDescription().getName(), TextVariables.NAME, user.getName(), TextVariables.DISPLAY_NAME,
|
||||||
user.getDisplayName());
|
user.getDisplayName());
|
||||||
|
|
||||||
getIslands().removePlayer(getWorld(), targetUUID);
|
getIslands().removePlayer(oldIsland, targetUUID);
|
||||||
// Clean the target player
|
// Clean the target player
|
||||||
getPlayers().cleanLeavingPlayer(getWorld(), target, true, oldIsland);
|
getPlayers().cleanLeavingPlayer(getWorld(), target, true, oldIsland);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user