Package com.plotsquared.core.events
Class PlayerPlotDeniedEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlayerPlotDeniedEvent
-
Constructor Summary
ConstructorDescriptionPlayerPlotDeniedEvent
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) PlayerPlotDeniedEvent: Called when the denied UUID list is modified for a plot. -
Method Summary
Modifier and TypeMethodDescriptionPlotPlayer<?>
The player initiating the action.The player added/removed.boolean
wasAdded()
If a user was added.Methods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlot
-
Constructor Details
-
PlayerPlotDeniedEvent
PlayerPlotDeniedEvent: Called when the denied UUID list is modified for a plot.- Parameters:
initiator
- Player that initiated the eventplot
- Plot in which the event occurredplayer
- Player that was denied/un-deniedadded
-true
of add to deny list,false
if removed
-
-
Method Details
-
wasAdded
If a user was added.- Returns:
- boolean
-
getPlayer
The player added/removed.- Returns:
- UUID
-
getInitiator
The player initiating the action.- Returns:
- PlotPlayer
-