An open API service indexing awesome lists of open source software.

https://github.com/minebuilders/allaymc-kts-host

Load Kotlin Scripts in Allay!
https://github.com/minebuilders/allaymc-kts-host

allay allay-extension dev-tool

Last synced: 10 months ago
JSON representation

Load Kotlin Scripts in Allay!

Awesome Lists containing this project

README

          

### `hello.allay.kts`

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