Package dev.unnm3d.redischat.api.events
Class AsyncRedisChatMessageEvent
java.lang.Object
org.bukkit.event.Event
dev.unnm3d.redischat.api.events.AsyncRedisChatMessageEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class AsyncRedisChatMessageEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionAsyncRedisChatMessageEvent
(org.bukkit.command.CommandSender sender, ChannelAudience audience, net.kyori.adventure.text.Component format, net.kyori.adventure.text.Component content) Creates a RedisChatMessageEvent -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
AsyncRedisChatMessageEvent
public AsyncRedisChatMessageEvent(org.bukkit.command.CommandSender sender, ChannelAudience audience, net.kyori.adventure.text.Component format, net.kyori.adventure.text.Component content) Creates a RedisChatMessageEvent- Parameters:
sender
- The sender of the messageaudience
- The channel of the messageformat
- The format of the messagecontent
- The message content
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-