Skip to content

Commit a6eb62c

Browse files
committed
Move unsafeTeleportSpot lang to root module
1 parent e77ee68 commit a6eb62c

File tree

1 file changed

+1
-2
lines changed
  • bukkit/src/main/kotlin/io/github/rothes/esu/bukkit/module/essencialcommands

1 file changed

+1
-2
lines changed

bukkit/src/main/kotlin/io/github/rothes/esu/bukkit/module/essencialcommands/TpChunk.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ object TpChunk : BaseCommand<FeatureToggle.DefaultTrue, TpChunk.Lang>() {
2929
suspend fun tpChunk(sender: User, chunk: ChunkLocation, world: World = (sender as PlayerUser).player.location.world, player: Player = (sender as PlayerUser).player) {
3030
sender.message(lang, { teleporting }, player(player))
3131
val location = Location(world, (chunk.chunkX shl 4) + 8.0, 0.0, (chunk.chunkZ shl 4) + 8.0)
32-
val safeSpot = WorldUtils.findSafeSpot(location) ?: return sender.message(lang, { unsafeSpot })
32+
val safeSpot = WorldUtils.findSafeSpot(location) ?: return sender.message(module.lang, { unsafeTeleportSpot })
3333
player.tp(safeSpot)
3434
}
3535
})
3636
}
3737

3838
data class Lang(
39-
val unsafeSpot: MessageData = "<ec>Cannot find a safe spot for teleport.".message,
4039
val teleporting: MessageData = "<tc>Teleporting <tdc><player></tdc>...".message,
4140
)
4241

0 commit comments

Comments
 (0)