|
|
@ -247,14 +247,16 @@ public class WorldServer { |
|
|
|
nextWareHousePushTime = LocalDateTime.now().plusMinutes(15); |
|
|
|
nextWareHousePushTime = LocalDateTime.now().plusMinutes(15); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
switch(LocalDateTime.now().getHour()){ |
|
|
|
|
|
|
|
|
|
|
|
if(LocalDateTime.now().isAfter(nextDiscSpawn)) { |
|
|
|
|
|
|
|
switch (LocalDateTime.now().getHour()) { |
|
|
|
case 0: |
|
|
|
case 0: |
|
|
|
case 4: |
|
|
|
case 4: |
|
|
|
case 8: |
|
|
|
case 8: |
|
|
|
case 12: |
|
|
|
case 12: |
|
|
|
case 16: |
|
|
|
case 16: |
|
|
|
case 20: |
|
|
|
case 20: |
|
|
|
for(Mob dropper : Mob.disciplineDroppers) { |
|
|
|
for (Mob dropper : Mob.disciplineDroppers) { |
|
|
|
if (!dropper.isAlive()) { |
|
|
|
if (!dropper.isAlive()) { |
|
|
|
Zone.respawnQue.add(dropper); |
|
|
|
Zone.respawnQue.add(dropper); |
|
|
|
} |
|
|
|
} |
|
|
@ -262,6 +264,8 @@ public class WorldServer { |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
nextDiscSpawn = nextDiscSpawn.plusHours(1); |
|
|
|
|
|
|
|
} |
|
|
|
ThreadUtils.sleep(50); |
|
|
|
ThreadUtils.sleep(50); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|