public class IllegalPacketEvent extends PlayerEvent
Event.Result
player
Constructor and Description |
---|
IllegalPacketEvent(Player player,
String type,
String kickMessage,
Exception e) |
Modifier and Type | Method and 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) |
getPlayer
callEvent, getEventName, isAsynchronous
public boolean isShouldKick()
public void setShouldKick(boolean shouldKick)
public String getKickMessage()
public void setKickMessage(String kickMessage)
public String getType()
public String getExceptionMessage()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.