Package com.plotsquared.core.events
Class PlayerPlotHelperEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlayerPlotHelperEvent
-
Constructor Summary
ConstructorDescriptionPlayerPlotHelperEvent
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) PlayerPlotHelperEvent: Called when a plot helper is added/removed -
Method Summary
Modifier and TypeMethodDescriptionPlotPlayer<?>
The player initiating the actionThe UUID added/removedboolean
wasAdded()
If a player was addedMethods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlot
-
Constructor Details
-
PlayerPlotHelperEvent
PlayerPlotHelperEvent: Called when a plot helper is added/removed- Parameters:
initiator
- Player that initiated the eventplot
- Plot in which the event occurredplayer
- Player that was added/removed from the helper listadded
-true
if the player was added,false
if the player was removed
-
-
Method Details
-
wasAdded
If a player was added- Returns:
- boolean
-
getPlayer
The UUID added/removed- Returns:
- UUID
-
getInitiator
The player initiating the action- Returns:
- PlotPlayer
-