Releases: LeafCommunity/Eventful
Releases · LeafCommunity/Eventful
Release: 0.4.0
Full Changelog: 0.3.0...0.4.0
Change:
- Change conditions for displaying deprecated event warnings.
- Prevents warnings when using
AsyncPlayerChatEvent
on Paper.
- Prevents warnings when using
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>community.leaf.eventful</groupId>
<artifactId>events-bukkit</artifactId>
<version>0.4.0</version>
</dependency>
Release: 0.3.0
Change:
- Rename
Events.Builder.acceptCancelled()
andEvents.Builder.rejectCancelled()
to reflect theCancellationPolicy
enum.
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>community.leaf.eventful</groupId>
<artifactId>events-bukkit</artifactId>
<version>0.3.0</version>
</dependency>
Release: 0.2.0
Add:
ListenerOrder
andCancellationPolicy
enums.@EventListener
annotation.- Example:
@EventListener(ListenerOrder.EARLY)
- Example:
@CancelledEvents
annotation.- Example:
@CancelledEvents(CancellationPolicy.REJECT)
- Example:
UncaughtEventExceptionEvent
.- Called when an uncaught exception occurs while handling an event.
Change:
- Use new enums in listener builders & registration methods.
- Register reflection-based events manually so
UncaughtEventExceptionEvent
and the new annotations are supported.- Uses MethodHandles to invoke event listener methods.
- Supports Bukkit's
@EventHandler
annotation along with the aforementioned new annotations.
- Always warn when registering a listener for a deprecated event.
- Rename
BukkitEventSource
(previously justEventSource
).
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>community.leaf.eventful</groupId>
<artifactId>events-bukkit</artifactId>
<version>0.2.0</version>
</dependency>