public class ProfileWhitelistVerifyEvent extends Event
Event.Result| Constructor | Description |
|---|---|
ProfileWhitelistVerifyEvent(PlayerProfile profile,
boolean whitelistEnabled,
boolean whitelisted,
boolean isOp,
java.lang.String kickMessage) |
| Modifier and Type | Method | Description |
|---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
java.lang.String |
getKickMessage() |
Gets the currently planned message to send to the user if they are not whitelisted
|
PlayerProfile |
getPlayerProfile() |
|
boolean |
isOp() |
Returns if the player obtained whitelist status by having op
|
boolean |
isWhitelisted() |
Whether the player is whitelisted to play on this server (whitelist may be off is why its true)
|
boolean |
isWhitelistEnabled() |
Returns if the server even has whitelist on
|
void |
setKickMessage(java.lang.String kickMessage) |
|
void |
setWhitelisted(boolean whitelisted) |
Changes the players whitelisted state.
|
callEvent, getEventName, isAsynchronouspublic ProfileWhitelistVerifyEvent(PlayerProfile profile, boolean whitelistEnabled, boolean whitelisted, boolean isOp, java.lang.String kickMessage)
public java.lang.String getKickMessage()
public void setKickMessage(java.lang.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)
public boolean isOp()
public boolean isWhitelistEnabled()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.