public class ProfileWhitelistVerifyEvent extends Event
Event.Result
Constructor and Description |
---|
ProfileWhitelistVerifyEvent(PlayerProfile profile,
boolean whitelistEnabled,
boolean whitelisted,
boolean isOp,
String kickMessage) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
String |
getKickMessage() |
PlayerProfile |
getPlayerProfile() |
boolean |
isOp() |
boolean |
isWhitelisted() |
boolean |
isWhitelistEnabled() |
void |
setKickMessage(String kickMessage) |
void |
setWhitelisted(boolean whitelisted)
Changes the players whitelisted state.
|
callEvent, getEventName, isAsynchronous
public ProfileWhitelistVerifyEvent(PlayerProfile profile, boolean whitelistEnabled, boolean whitelisted, boolean isOp, String kickMessage)
public String getKickMessage()
public void setKickMessage(String kickMessage)
kickMessage
- The message to send to the player on kick if not whitelisted. May set to null to use the server configured defaultpublic PlayerProfile getPlayerProfile()
public boolean isWhitelisted()
public void setWhitelisted(boolean whitelisted)
whitelisted
- The new whitelisted statepublic boolean isOp()
public boolean isWhitelistEnabled()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.