mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-01-10 02:19:30 +01:00
Merge if statement
This commit is contained in:
parent
24b7d26fbe
commit
1c19703f44
@ -185,12 +185,11 @@ public class IslandTeamInviteAcceptCommand extends ConfirmableCommand {
|
|||||||
Util.runCommands(user, ownerName, getIWM().getOnJoinCommands(getWorld()), "join");
|
Util.runCommands(user, ownerName, getIWM().getOnJoinCommands(getWorld()), "join");
|
||||||
|
|
||||||
});
|
});
|
||||||
if (getIWM().getWorldSettings(getWorld()).isDisallowTeamMemberIslands()) {
|
if (getIWM().getWorldSettings(getWorld()).isDisallowTeamMemberIslands()
|
||||||
|
&& getIWM().isTeamJoinDeathReset(getWorld())) {
|
||||||
// Reset deaths
|
// Reset deaths
|
||||||
if (getIWM().isTeamJoinDeathReset(getWorld())) {
|
|
||||||
getPlayers().setDeaths(getWorld(), user.getUniqueId(), 0);
|
getPlayers().setDeaths(getWorld(), user.getUniqueId(), 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
user.sendMessage("commands.island.team.invite.accept.you-joined-island", TextVariables.LABEL, getTopLabel());
|
user.sendMessage("commands.island.team.invite.accept.you-joined-island", TextVariables.LABEL, getTopLabel());
|
||||||
User inviter = User.getInstance(invite.getInviter());
|
User inviter = User.getInstance(invite.getInviter());
|
||||||
if (inviter.isOnline()) {
|
if (inviter.isOnline()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user