Implemented 7 Christmas Holiday randoms:

Snowman
Snowman Fight
Santa
Jack Frost
Choir
Snowstorm
Cook
This commit is contained in:
Zerken
2023-11-11 03:49:04 +00:00
committed by Ryan
parent 8ef5d8bce4
commit cd4d0ec20b
31 changed files with 678 additions and 38 deletions
+7 -2
View File
@@ -778,8 +778,13 @@ fun sendMessage(player: Player, message: String) {
* @param entity the entity to send the chat for
* @param message the message to display
*/
fun sendChat(entity: Entity, message: String) {
entity.sendChat(message)
fun sendChat(entity: Entity, message: String, delay: Int = -1) {
if (delay > -1) {
queueScript(entity, delay, QueueStrength.SOFT) {
entity.sendChat(message)
return@queueScript stopExecuting(entity)
}
} else entity.sendChat(message)
}
/**