Sample plugins
Every sample plugin in src/scripting/managed/samples/ is listed here with its source read from the repository when the site is built, so the examples are always the code that compiles on main.
Countdown timers on a boss bar Shows: event subscriptions, commands, Brigadier command trees (v1), the scheduler, permissions (v1), players API: boss bars, sidebar, titles (v1).
Join and quit messages to a Discord webhook Shows: event subscriptions, config (v1).
Join/quit messages and a server list MOTD Shows: event subscriptions, commands, Brigadier command trees (v1), config (v1).
Sample plugin: events (cancellation and mutation), a component, a per-tick system, a command and the scheduler. Shows: event subscriptions, cancelling events, event priorities, ECS components, ECS queries, per-tick systems, commands, the scheduler.
Set homes and teleport back to them Shows: commands, Brigadier command trees (v1), config (v1).
Claimable kits with cooldowns Shows: commands, Brigadier command trees (v1), config (v1), permissions (v1).
/perm: manage groups and player permissions of the built-in backend Shows: commands, Brigadier command trees (v1), permissions (v1).
A custom block and the item it drops Shows: cancelling events, commands, Brigadier command trees (v1), permissions (v1).
A custom item with a right-click ability Shows: cancelling events, commands, Brigadier command trees (v1), permissions (v1).
A shop in a custom GUI Shows: commands, Brigadier command trees (v1), config (v1), permissions (v1).
Live personal sidebar scoreboard Shows: event subscriptions, commands, Brigadier command trees (v1), the scheduler, players API: boss bars, sidebar, titles (v1).
Blocks building near the world spawn Shows: event subscriptions, cancelling events.
World API sample: blocks, signs, mobs, explosions, time, weather, chunk tickets Shows: commands, Brigadier command trees (v1), permissions (v1).
Guides with full code
Section titled “Guides with full code”The guides build plugins step by step; the samples above are the finished, compiled versions.