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() |
|
boolean |
isOp() |
|
boolean |
isWhitelisted() |
|
boolean |
isWhitelistEnabled() |
|
void |
setKickMessage(String kickMessage) |
|
void |
setWhitelisted(boolean whitelisted) |
Changes the players whitelisted state.
|
callEvent, getEventName, isAsynchronouspublic ProfileWhitelistVerifyEvent(@NotNull PlayerProfile profile, boolean whitelistEnabled, boolean whitelisted, boolean isOp, @Nullable String kickMessage)
@Nullable public String getKickMessage()
public void setKickMessage(@Nullable 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@NotNull public PlayerProfile getPlayerProfile()
public boolean isWhitelisted()
public void setWhitelisted(boolean whitelisted)
whitelisted - The new whitelisted statepublic boolean isOp()
public boolean isWhitelistEnabled()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2020. All rights reserved.