diff --git a/src/main/java/me/melontini/commander/api/event/EventType.java b/src/main/java/me/melontini/commander/api/event/EventType.java index 5b02493..d56b505 100644 --- a/src/main/java/me/melontini/commander/api/event/EventType.java +++ b/src/main/java/me/melontini/commander/api/event/EventType.java @@ -18,7 +18,7 @@ import org.jetbrains.annotations.Nullable; /** * Event types define basic information about events, like the return type, additional parameters and the finalizer. * - *

- {@link EventType.Builder#extension(Codec, Function)} allows you to pass additional parameters to the subscription and {@link EventType#FINALIZER} allows you to process those parameters.

+ *

- {@link EventType.Builder#extension(Codec, Function)} allows you to pass additional parameters to the subscription and process those parameters.

*

- {@link EventType.Builder#cancelTerm(Codec)} defines if the {@code commander:cancel} command is supported by this event.

*/ @ApiStatus.NonExtendable diff --git a/src/main/java/me/melontini/commander/impl/event/EventContextImpl.java b/src/main/java/me/melontini/commander/impl/event/EventContextImpl.java index ced90fe..f563317 100644 --- a/src/main/java/me/melontini/commander/impl/event/EventContextImpl.java +++ b/src/main/java/me/melontini/commander/impl/event/EventContextImpl.java @@ -63,7 +63,7 @@ public final class EventContextImpl implements EventContext { public Builder(EventType type) { this.type = type; - if (this.type.get(EventType.CANCEL_TERM).isPresent()) { + if (this.type.get(EventTypeImpl.CANCEL_TERM).isPresent()) { map.put(EventKey.RETURN_VALUE, new AtomicReference<>()); } }