public class ProfileWhitelistVerifyEvent extends Event
Event.Result| Constructor and Description |
|---|
ProfileWhitelistVerifyEvent(com.mojang.authlib.GameProfile profile,
boolean whitelistEnabled,
boolean whitelisted,
boolean isOp,
String kickMessage) |
| Modifier and Type | Method and Description |
|---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
String |
getKickMessage()
Gets the currently planned message to send to the user if they are not whitelisted
|
com.mojang.authlib.GameProfile |
getProfile()
The gameprofile of the player trying to connect
|
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(String kickMessage) |
void |
setWhitelisted(boolean whitelisted)
Changes the players whitelisted state.
|
callEvent, getEventName, isAsynchronouspublic ProfileWhitelistVerifyEvent(com.mojang.authlib.GameProfile 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 com.mojang.authlib.GameProfile getProfile()
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 © 2017. All rights reserved.