import org.apollo.game.model.entity.setting.PrivilegeLevel

on_command("broadcast", PrivilegeLevel.ADMINISTRATOR)
        .then { player ->
            val message = arguments.joinToString(" ")
            val broadcast = "[Broadcast] ${player.username.capitalize()}: $message"

            player.world.playerRepository.forEach { other ->
                other.sendMessage(broadcast)
            }
        }

Convert messaging commands to Kotlin
Convert messaging commands to Kotlin

apollo-rsps/apollo,apollo-rsps/apollo,apollo-rsps/apollo