public class ProfileWhitelistVerifyEvent extends Event
Event.Result
Constructor and Description |
---|
ProfileWhitelistVerifyEvent(@NotNull PlayerProfile profile,
boolean whitelistEnabled,
boolean whitelisted,
boolean isOp,
@Nullable net.kyori.adventure.text.Component kickMessage) |
ProfileWhitelistVerifyEvent(@NotNull PlayerProfile profile,
boolean whitelistEnabled,
boolean whitelisted,
boolean isOp,
@Nullable String kickMessage)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
@Nullable String |
getKickMessage()
Deprecated.
use
kickMessage() |
@NotNull PlayerProfile |
getPlayerProfile() |
boolean |
isOp() |
boolean |
isWhitelisted() |
boolean |
isWhitelistEnabled() |
@Nullable net.kyori.adventure.text.Component |
kickMessage() |
void |
kickMessage(@Nullable net.kyori.adventure.text.Component kickMessage) |
void |
setKickMessage(@Nullable String kickMessage)
Deprecated.
|
void |
setWhitelisted(boolean whitelisted)
Changes the players whitelisted state.
|
callEvent, getEventName, isAsynchronous
@Deprecated public ProfileWhitelistVerifyEvent(@NotNull @NotNull PlayerProfile profile, boolean whitelistEnabled, boolean whitelisted, boolean isOp, @Nullable @Nullable String kickMessage)
public ProfileWhitelistVerifyEvent(@NotNull @NotNull PlayerProfile profile, boolean whitelistEnabled, boolean whitelisted, boolean isOp, @Nullable @Nullable net.kyori.adventure.text.Component kickMessage)
@Deprecated @Nullable public @Nullable String getKickMessage()
kickMessage()
@Deprecated public void setKickMessage(@Nullable @Nullable String kickMessage)
kickMessage(Component)
kickMessage
- The message to send to the player on kick if not whitelisted. May set to null to use the server configured default@Nullable public @Nullable net.kyori.adventure.text.Component kickMessage()
public void kickMessage(@Nullable @Nullable net.kyori.adventure.text.Component 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 © 2021. All rights reserved.