Your First Script
Updated 16 Mar 2026Create plugins/Kode/scripts/hello.kode:
on PlayerJoin:
send "&aHello, player.name! Welcome to the server." to player
give player bread 4
Run /kode reload. The next player to join will receive a greeting and four pieces of bread.
Indentation rule: Use 4 spaces (or 1 tab) to indent the body of any block. Kode is indentation-sensitive just like Python.