How to create API with your own custom events for Minecraft plugins. Let other developers hook into your plugin easily.

In this episode, we’re going to cover:

  • Custom events — What needs to be placed (handlers) inside a custom event class and how it works.
  • Cancellable events — How modify the event result or cancel the entire event the right way.

Source Codes:

Links:

  • Bukkit Events Docs — Official Bukkit events documentation, might be outdated. Refer to the video for up to date information.

 

Learn To Make Minecraft Plugins

Creating Minecraft plugins can be confusing, with most YouTube tutorials being painfully outdated, disorganized and offering no live support.

If you want to learn from the best and create truly customized plugins, see Project Orion. This is a full training tried and tested by 2,000+ people showing you step-by-step how to make plugins (minigames, custom mobs, antipiracy, dungeons, claims etc.) and much more!

You’ll get 2x/weekly 1:1 calls to review your code and get your questions answered, plus a 1,900+ community on Discord and our private portal, covered by 30-day guarantee. It’s just so much better experience than any blog post or video since I can pour my time and heart into it and teach you 100X faster than any free YouTube tutorial can. Click here to learn more!