public class IllegalPacketEvent extends PlayerEvent
Event.Result
player
Constructor and Description |
---|
IllegalPacketEvent(@NotNull Player player,
@Nullable String type,
@Nullable String kickMessage,
@NotNull Exception e) |
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getExceptionMessage() |
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@Nullable String |
getKickMessage() |
@Nullable String |
getType() |
boolean |
isShouldKick() |
static void |
process(@NotNull Player player,
@Nullable String type,
@Nullable String kickMessage,
@NotNull Exception exception) |
void |
setKickMessage(@Nullable String kickMessage) |
void |
setShouldKick(boolean shouldKick) |
getPlayer
callEvent, getEventName, isAsynchronous
public boolean isShouldKick()
public void setShouldKick(boolean shouldKick)
@Nullable public @Nullable String getKickMessage()
public void setKickMessage(@Nullable @Nullable String kickMessage)
@Nullable public @Nullable String getType()
@Nullable public @Nullable String getExceptionMessage()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2022. All rights reserved.