Update EntityExtensions.kt

This commit is contained in:
bluefireoly
2020-08-28 13:42:29 +02:00
parent b64826ebc9
commit 0263361a0c

View File

@@ -81,4 +81,11 @@ fun Player.disappear(plugin: Plugin) {
*/
fun Player.appear(plugin: Plugin) {
onlinePlayers.filter { it != this }.forEach { it.showPlayer(plugin, this) }
}
/**
* Kicks the player from the server.
*/
fun Player.kick(reason: String? = "You got kicked!") {
kickPlayer(reason)
}