public static void handlePassThroughDoor( final Player player, final int id, final int x, final int y, final int z, final int destX, final int destY) { Doors doors = getDoor(id, x, y, z); if (doors == null) { player.setStopPacket(false); return; } handleDoor(id, x, y, z); final Doors door = doors; player.getActionSender().walkTo(destX, destY, false); CycleEventHandler.getInstance() .addEvent( player, new CycleEvent() { @Override public void execute(CycleEventContainer container) { handleDoor(door.doorId, door.doorX, door.doorY, door.doorZ); container.stop(); } @Override public void stop() {} }, 2); }