public class IllegalPacketEvent extends PlayerEvent
Event.Resultplayer| 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) |
getPlayercallEvent, getEventName, isAsynchronouspublic 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.