|
|
|
@ -256,12 +256,16 @@ public class WorldServer {
@@ -256,12 +256,16 @@ public class WorldServer {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (LocalDateTime.now().isAfter(nextDiscSpawn)) { |
|
|
|
|
for(Mob dropper : Mob.disciplineDroppers){ |
|
|
|
|
if(dropper.isAlive() == false){ |
|
|
|
|
for(Mob dropper : Mob.disciplineDroppers) { |
|
|
|
|
if (dropper.discDelay == 6 && (LocalDateTime.now().getHour() == 6 || LocalDateTime.now().getHour() == 12 || LocalDateTime.now().getHour() == 18 || LocalDateTime.now().getHour() == 0)) { |
|
|
|
|
if (!dropper.isAlive()) { |
|
|
|
|
dropper.respawn(); |
|
|
|
|
} |
|
|
|
|
} else if (!dropper.isAlive()) { |
|
|
|
|
dropper.respawn(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
nextDiscSpawn = LocalDateTime.now().plusHours(6).withMinute(0).withSecond(0); |
|
|
|
|
nextDiscSpawn = LocalDateTime.now().plusHours(1).withMinute(0).withSecond(0); |
|
|
|
|
} |
|
|
|
|
ThreadUtils.sleep(50); |
|
|
|
|
} |
|
|
|
|