From accb0bcea3805eb86987cdc7d686304898bf28f6 Mon Sep 17 00:00:00 2001 From: melontini <104443436+melontini@users.noreply.github.com> Date: Tue, 6 Aug 2024 22:23:38 +0700 Subject: [PATCH] Somehow I missed this. --- src/main/java/me/melontini/commander/api/event/EventType.java | 2 +- .../me/melontini/commander/impl/event/EventContextImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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<>()); } } -- 2.51.2