Event list¶
These pages list the events you can listen to with plugin.registerEvent, grouped by category. Pick a category to see its events.
- Block: placing, breaking, burning, pistons and more
- Enchantment: the enchanting table
- Entity: mobs, animals, villagers, projectiles and dropped items
- Hanging: paintings and item frames
- Inventory: clicking, crafting, furnaces, brewing and trades
- Player: everything a player does
- Raid: village raids
- Server: plugins, console commands and server pings
- Vehicle: boats, minecarts and other vehicles
- Weather: rain, thunder and lightning
- World: chunks, portals, time and worlds loading
How to read the tables¶
Each table has the event's name, a short note on when it happens, and whether you can cancel it. "Yes" means event:setCancelled(true) stops the thing from happening, like in the Events lesson. "No" means it has already happened, so there's nothing left to stop.
Good to know¶
These lists follow the current Spigot docs. An event that was added in a newer version of Minecraft won't exist on an older server, and old events that Spigot has marked as deprecated are left out. Paper adds some events of its own, which aren't included here.