Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 419 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 419 Bytes

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}!")
}