Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Jun 9, 2024
1 parent 5880640 commit abb1818
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object TransferCooldown {
if (!config.transferCooldown || lastRunCompleted.isInFuture()) return
lastRunCompleted = DelayedRun.runDelayed(3.seconds) {
if (config.transferCooldownMessage && LorenzUtils.inSkyBlock) ChatUtils.chat(
"§aPlayer Transfer Cooldown has ended."
"§aPlayer Transfer Cooldown has ended.",
)
action?.invoke()
action = null
Expand All @@ -42,7 +42,9 @@ object TransferCooldown {

"/warp" -> {
event.cancel()
action = { HypixelCommands.warp(event.splitMessage.subList(1, event.splitMessage.size).joinToString(" ")) }
action = {
HypixelCommands.warp(event.splitMessage.subList(1, event.splitMessage.size).joinToString(" "))
}
}

"/warpforge" -> {
Expand Down

0 comments on commit abb1818

Please sign in to comment.