Add Listener

Add an event listener to a Minecraft plugin — a Listener class with @EventHandler methods, wired into onEnable with registerEvents. Use this whenever the user wants to react to something happening in-game: on join/quit, block break/place, player interact, entity damage/death, inventory click, chat, respawn, or any Bukkit/Paper event. Handles priority, cancelled-event handling, and hot-event performance. Reads the target stack from .mcplugin/config.yml.

itamarb2010-jpg Updated

File contents

itamarb2010-jpg/McPluginSkill/tree/main/.claude/skills/add-listener commit 7ee137b38e

Frequently asked questions

npx skillmds@latest add itamarb2010-jpg/add-listener