Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
RedMagic edited this page Apr 23, 2024 · 3 revisions

More info and source code click here

We are also changing how you can handle listening to events and creating custom events.

Listening

Inside of Bukkit you need to implement Listener and then register the class / method. We have changed this so you don't need to do that stuff (See below)

event<PlayerJoinEvent> { 
    //Player Join
}

Custom event

Inside the Bukkit api if you want to create a custom event you will need to extend Event class and if you want to make it cancellable you will to implement Cancellable as well. When you did that you still need to add the HandlerList. I think this so a bit much so create a new system to quickly and easily create custom events. You only need to extend UndefinedEvent add the values you want in the event and thats is. (See below)

class CustomEvent: UndefinedEvent() {
    //Custom event
}
Clone this wiki locally