//nessary imports for the script
import net.minecraft.network.chat.Component
import top.katton.api.KattonEvents
// The function with @ServerScriptEntrypoint is the entry point of the script.
@ServerScriptEntrypoint
fun main(){
// Register an event listener for when a player joins the server
KattonEvents.ServerPlayer.onPlayerJoin += onJoin@
fun(arg: KattonEvents.ServerPlayer.PlayerArg){
// Get the player who joined and send them a message
val player = arg.player
...⚡

