Update EntityExtensions.kt
This commit is contained in:
@@ -81,4 +81,11 @@ fun Player.disappear(plugin: Plugin) {
|
|||||||
*/
|
*/
|
||||||
fun Player.appear(plugin: Plugin) {
|
fun Player.appear(plugin: Plugin) {
|
||||||
onlinePlayers.filter { it != this }.forEach { it.showPlayer(plugin, this) }
|
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)
|
||||||
}
|
}
|
Reference in New Issue
Block a user