|
|
@ -5250,6 +5250,12 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean valid = true; |
|
|
|
|
|
|
|
for(PlayerCharacter pc : sameMachine){ |
|
|
|
|
|
|
|
if(!pc.safeZone) |
|
|
|
|
|
|
|
valid = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(valid) { |
|
|
|
for (PlayerCharacter pc : sameMachine) |
|
|
|
for (PlayerCharacter pc : sameMachine) |
|
|
|
pc.isBoxed = true; |
|
|
|
pc.isBoxed = true; |
|
|
|
|
|
|
|
|
|
|
@ -5257,7 +5263,9 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
if (player.containsEffect(1672601862)) { |
|
|
|
if (player.containsEffect(1672601862)) { |
|
|
|
player.removeEffectBySource(EffectSourceType.DeathShroud, 41, false); |
|
|
|
player.removeEffectBySource(EffectSourceType.DeathShroud, 41, false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
ChatManager.chatSystemInfo(player, "All Boxes Must Be In Safezone To Switch"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
public static boolean checkIfBoxed(PlayerCharacter player){ |
|
|
|
public static boolean checkIfBoxed(PlayerCharacter player){ |
|
|
|
if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) { |
|
|
|
if(ConfigManager.MB_WORLD_BOXLIMIT.getValue().equals("false")) { |
|
|
|