-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix msg not sending as minimsg format
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
src/main/kotlin/com/mineinabyss/deeperworld/movement/InvalidTeleportHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
} |