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!
- Host: GitHub
- URL: https://github.com/minebuilders/allaymc-kts-host
- Owner: MineBuilders
- License: apache-2.0
- Created: 2025-01-03T04:04:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-24T17:18:26.000Z (about 1 year ago)
- Last Synced: 2025-04-23T05:09:30.544Z (10 months ago)
- Topics: allay, allay-extension, dev-tool
- Language: Kotlin
- Homepage:
- Size: 73.2 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}!")
}
```