public class IllegalPacketEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
IllegalPacketEvent(@NotNull Player player,
@Nullable String type,
@Nullable String kickMessage,
@NotNull Exception e) |
Modifier and Type | Method | 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) |
callEvent, getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
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 © 2020. All rights reserved.