|
|
@ -4839,19 +4839,23 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static boolean checkIfBoxed(PlayerCharacter player){ |
|
|
|
public static boolean checkIfBoxed(PlayerCharacter player){ |
|
|
|
for(PlayerCharacter pc : SessionManager.getAllActivePlayers()){ |
|
|
|
try { |
|
|
|
if(!pc.isActive) |
|
|
|
for (PlayerCharacter pc : SessionManager.getAllActivePlayers()) { |
|
|
|
continue; |
|
|
|
if (!pc.isActive) |
|
|
|
if(!pc.enteredWorld) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (!pc.enteredWorld) |
|
|
|
if(pc.equals(player)) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
if (pc.equals(player)) |
|
|
|
if(pc.getClientConnection().machineID.equals(player.getClientConnection().machineID)) |
|
|
|
continue; |
|
|
|
if(pc.isBoxed == false) |
|
|
|
if (pc.getClientConnection().machineID.equals(player.getClientConnection().machineID)) |
|
|
|
return true; |
|
|
|
if (pc.isBoxed == false) |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
}catch(Exception e){ |
|
|
|
|
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|