package com.aionemu.gameserver.services.rift;
import com.aionemu.gameserver.services.RiftService;
import com.aionemu.gameserver.utils.ThreadPoolManager;
/**
* @author Source
*/
public class RiftOpenRunnable implements Runnable {
private final int worldId;
private final boolean guards;
public RiftOpenRunnable(int worldId, boolean guards) {
this.worldId = worldId;
this.guards = guards;
}
@Override
public void run() {
RiftService.getInstance().prepareRiftOpening(worldId, guards);
// Scheduled rifts close
ThreadPoolManager.getInstance().schedule(() -> RiftService.getInstance().closeRifts(false),
RiftService.getInstance().getDuration() * 3540 * 1000);
// Broadcast rift spawn on map
RiftInformer.sendRiftsInfo(worldId);
}
}
순위 | 닉네임 | 포인트 |
---|---|---|
1 |
![]() |
102,949 |
2 |
![]() |
63,733 |
3 |
![]() |
51,771 |
4 |
![]() |
36,923 |
5 |
![]() |
35,011 |
6 |
![]() |
29,470 |
7 |
![]() |
29,077 |
8 |
![]() |
28,199 |
9 |
![]() |
26,731 |
10 |
![]() |
17,020 |