
walkmc.placeholder.PlayerPlaceholder.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of walk-server Show documentation
Show all versions of walk-server Show documentation
A spigot fork to kotlin structure and news.
package walkmc.placeholder
import org.bukkit.entity.*
import walkmc.extensions.strings.*
/**
* Represents a [Player], [Placeholder]. This only converts the name of the sender.
*/
object PlayerPlaceholder : Placeholder {
override fun process(string: String, value: Player): String {
return string.process("{player}") { value.name }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy