Skip to content

AddFriendInput

data class AddFriendInput(val name: String) : IncomingGamePacket()
Example
on_input<AddFriendInput> { player ->
val friend = World.findPlayer(name)
player.message(if (friend == null) "$name is not on this realm right now." else "$name is online.")
}
val name: String