Death's message for the holiday random event now uses the correct type of player name

This commit is contained in:
Player Name 2023-10-24 13:35:09 +00:00 committed by Ryan
parent 3c9dea2830
commit 9445a2bae5

View file

@ -22,9 +22,9 @@ class DeathHolidayRandomNPC(override var loot: WeightBasedTable? = null) : Holid
} }
1 -> { 1 -> {
when(RandomFunction.getRandom(2)) { when(RandomFunction.getRandom(2)) {
0 -> sendChat(this, "Your end is near, ${player.name.capitalize()}...") 0 -> sendChat(this, "Your end is near, ${player.username.capitalize()}...")
1 -> sendChat(this, "Time is running out, ${player.name.capitalize()}...") 1 -> sendChat(this, "Time is running out, ${player.username.capitalize()}...")
2 -> sendChat(this, "Tick tock, ${player.name.capitalize()}...") 2 -> sendChat(this, "Tick tock, ${player.username.capitalize()}...")
} }
return@queueScript delayScript(this, 4) return@queueScript delayScript(this, 4)
} }