Skip to content

Commit

Permalink
Changed dragon message in chat to occur at the same time the timer ap…
Browse files Browse the repository at this point in the history
…pears (#408)

owo snowo
  • Loading branch information
snowball7241 authored Aug 20, 2023
1 parent f985a2d commit ff93b69
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ object MasterMode7Features {
WitherKingDragons.values().find { it.blockPos.x == x.toInt() && it.blockPos.z == z.toInt() } ?: return
if (spawningDragons.add(drag)) {
printDevMessage("${drag.name} spawning $x $y $z", "witherkingdrags")
if (Skytils.config.witherKingDragonSpawnAlert) {
UChat.chat("§c§lThe ${drag.chatColor}§l${drag.name} §c§ldragon is spawning!")
}

}
} else if (event.packet is S2APacketParticles) {
event.packet.apply {
Expand All @@ -111,6 +109,9 @@ object MasterMode7Features {
if (owner !in dragonSpawnTimes) {
dragonSpawnTimes[owner] = System.currentTimeMillis() + 5000
}
if (Skytils.config.witherKingDragonSpawnAlert) {
UChat.chat("§c§lThe ${owner.chatColor}§l${owner.name} §c§ldragon is spawning!")
}
}
}
}
Expand Down

0 comments on commit ff93b69

Please sign in to comment.