PlayerEditor
interface PlayerEditor
DSL interface for editing player properties in a fluent and type-safe manner.
This interface provides a convenient way to modify various player attributes such as game mode, health, food level, experience, and more using Kotlin's DSL capabilities.
Example usage:
player.edit {
gameMode = GameMode.CREATIVE
health = 20.0
foodLevel = 20
level = 10
exp = 0.5f
sendMessage("Welcome to the game!")
teleport(spawnLocation)
}Content copied to clipboard