MineBuilders / allaymc-kotlin-scripting

Script loader for Allay Server but Kotlin!

Repository from Github https://github.comMineBuilders/allaymc-kotlin-scriptingRepository from Github https://github.comMineBuilders/allaymc-kotlin-scripting

hello.allay.kts

@file:ScriptInfo(
    name = "Hello Allay",
    description = "Test kotlin script for Allay.",
    authors = ["Cdm2883"],
)

import org.allaymc.api.eventbus.event.player.PlayerJoinEvent

println("Hello world from Kotlin Scripting!")

Server.getInstance().eventBus.registerListenerFor(PlayerJoinEvent::class.java) { event ->
    println("Hello my friend ${event.player.displayName}!")
}

About

Script loader for Allay Server but Kotlin!

License:Apache License 2.0


Languages

Language:Kotlin 100.0%