mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-03 14:02:04 +01:00
This commit is contained in:
parent
2f0869fd6e
commit
56c9f5c28e
@ -222,5 +222,8 @@ public class IslandTeamInviteAcceptCommand extends ConfirmableCommand {
|
||||
if (getIWM().isOnJoinResetXP(getWorld())) {
|
||||
user.getPlayer().setTotalExperience(0);
|
||||
}
|
||||
|
||||
// Execute commands
|
||||
Util.runCommands(user, getIWM().getOnJoinCommands(getWorld()), "join");
|
||||
}
|
||||
}
|
||||
|
@ -1154,9 +1154,6 @@ public class IslandsManager {
|
||||
// Do nothing
|
||||
return;
|
||||
}
|
||||
// Execute commands
|
||||
Util.runCommands(user, plugin.getIWM().getOnJoinCommands(world), "join");
|
||||
|
||||
// Remove money inventory etc.
|
||||
if (plugin.getIWM().isOnJoinResetEnderChest(world)) {
|
||||
user.getPlayer().getEnderChest().clear();
|
||||
@ -1185,6 +1182,9 @@ public class IslandsManager {
|
||||
|
||||
// Set the game mode
|
||||
user.setGameMode(plugin.getIWM().getDefaultGameMode(world));
|
||||
|
||||
// Execute commands
|
||||
Util.runCommands(user, plugin.getIWM().getOnJoinCommands(world), "join");
|
||||
}
|
||||
// Remove from mid-teleport set
|
||||
goingHome.remove(user.getUniqueId());
|
||||
|
Loading…
Reference in New Issue
Block a user