Skip to content

Commit

Permalink
fix msg not sending as minimsg format
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Sep 1, 2022
1 parent 3cc4536 commit 253b9e3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package com.mineinabyss.deeperworld.movement

import com.mineinabyss.idofront.messaging.error
import org.bukkit.Location
import org.bukkit.entity.Player

abstract class InvalidTeleportHandler(val player: Player, val from: Location, val to: Location) :
TeleportHandler {
final override fun handleTeleport() {
handleInvalidTeleport()
player.sendMessage("<red>There is no where for you to teleport")
player.error("There is no where for you to teleport")
}

override fun isValidTeleport(): Boolean {
return false
}

abstract fun handleInvalidTeleport();
abstract fun handleInvalidTeleport()
}

0 comments on commit 253b9e3

Please sign in to comment.