for (Player player : online) {
try {
SpoutCraftPlayer scp = (SpoutCraftPlayer) SpoutCraftPlayer.getPlayer(player);
scp.resetMovement();
if (scp.isSpoutCraftEnabled()) {
scp.sendPacket(new PacketRenderDistance(true, true));
}
} catch (Exception e) {
e.printStackTrace();
}
}