public class IllegalPacketEvent extends PlayerEvent
Event.Result
player
Constructor | Description |
---|---|
IllegalPacketEvent(Player player,
String type,
String kickMessage,
Exception e) |
Modifier and Type | Method | Description |
---|---|---|
String |
getExceptionMessage() |
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
String |
getKickMessage() |
|
String |
getType() |
|
boolean |
isShouldKick() |
|
static void |
process(Player player,
String type,
String kickMessage,
Exception exception) |
|
void |
setKickMessage(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 String getKickMessage()
public void setKickMessage(@Nullable String kickMessage)
@Nullable public String getType()
@Nullable public String getExceptionMessage()
@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.