WhitelistRemovePlayerEvent
This class represents a Whitelist+ event triggered when a player is removed from the whitelist. This event is cancellable, allowing plugins to prevent a player from being removed from the whitelist.
Constructor
public WhitelistRemovePlayerEvent(String playerName, Player triggeredBy, WhitelistSource source)
Creates a new instance of the event.
playerName - The name of the player being removed.
triggeredBy - The player who initiated the removal (can be null).
source - The source of the action (API, CONSOLE, PLAYER).
Methods
String getPlayerName()
String getPlayerName()
Returns the name of the player being removed from the whitelist.
OfflinePlayer getPlayer()
OfflinePlayer getPlayer()
Returns an OfflinePlayer
instance of the player being removed.
Player getTriggeredBy()
Player getTriggeredBy()
Returns the player who triggered the removal action, or null if triggered by console or API.
WhitelistSource getSource()
WhitelistSource getSource()
Returns the source of the whitelist removal.
boolean isCancelled()
boolean isCancelled()
Checks whether the event has been cancelled.
void setCancelled(boolean cancel)
void setCancelled(boolean cancel)
Sets whether the event should be cancelled.
HandlerList getHandlers()
HandlerList getHandlers()
Standard Bukkit method to retrieve handlers for this event.
static HandlerList getHandlerList()
static HandlerList getHandlerList()
Returns the static handler list for this event class.
Last updated