Modules/Events
Listening to events
Lynx makes it easy to listen to Bukkit events. Even though it's simple, it still allows for all the customization of normal events.
When listening to events in Java you will need to call the static method Events.event(). Inside the constructor of this method you can customise the event:
Events.event(PlayerJoinEvent.class, event -> {
    event.setJoinMessage("Fun Custom Join Message");
});When listening to events in Kotlin you can call the static method event<T: Event>(). Inside the constructor of this method you can customise the event:
event<PlayerJoinEvent> {
    joinMessage = "Fun Custom Join Message"
}