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