diff --git a/src/main/kotlin/com/mineinabyss/deeperworld/movement/InvalidTeleportHandler.kt b/src/main/kotlin/com/mineinabyss/deeperworld/movement/InvalidTeleportHandler.kt index e069d54..43f6540 100644 --- a/src/main/kotlin/com/mineinabyss/deeperworld/movement/InvalidTeleportHandler.kt +++ b/src/main/kotlin/com/mineinabyss/deeperworld/movement/InvalidTeleportHandler.kt @@ -1,5 +1,6 @@ package com.mineinabyss.deeperworld.movement +import com.mineinabyss.idofront.messaging.error import org.bukkit.Location import org.bukkit.entity.Player @@ -7,12 +8,12 @@ abstract class InvalidTeleportHandler(val player: Player, val from: Location, va TeleportHandler { final override fun handleTeleport() { handleInvalidTeleport() - player.sendMessage("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() }