public class ProfileWhitelistVerifyEvent extends Event
Event.Result
Constructor | Description |
---|---|
ProfileWhitelistVerifyEvent(PlayerProfile profile,
boolean whitelistEnabled,
boolean whitelisted,
boolean isOp,
String kickMessage) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
String |
getKickMessage() |
|
PlayerProfile |
getPlayerProfile() |
|
com.mojang.authlib.GameProfile |
getProfile() |
Deprecated.
Will be removed in 1.13, use #
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 default@Deprecated public com.mojang.authlib.GameProfile getProfile()
getPlayerProfile()
public 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 © 2019. All rights reserved.