Package com.plotsquared.core.events
Class PlotRateEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotRateEvent
- All Implemented Interfaces:
CancellablePlotEvent
-
Constructor Summary
ConstructorDescriptionPlotRateEvent
(PlotPlayer<?> rater, @Nullable Rating rating, Plot plot) PlotRateEvent: Called when a player rates a plot -
Method Summary
Modifier and TypeMethodDescriptionThe currently setResult
for this event (as set by potential previous event listeners).PlotPlayer
<?> getRater()
void
Set theResult
for this event.void
Methods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlot
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.plotsquared.core.events.CancellablePlotEvent
getEventResultRaw
-
Constructor Details
-
PlotRateEvent
PlotRateEvent: Called when a player rates a plot- Parameters:
rater
- The player rating the plotrating
- The rating being givenplot
- The plot being rated
-
-
Method Details
-
getRater
-
getRating
-
setRating
-
getEventResult
Description copied from interface:CancellablePlotEvent
The currently setResult
for this event (as set by potential previous event listeners).- Specified by:
getEventResult
in interfaceCancellablePlotEvent
- Returns:
- the current result.
-
setEventResult
Description copied from interface:CancellablePlotEvent
Set theResult
for this event.- Specified by:
setEventResult
in interfaceCancellablePlotEvent
- Parameters:
e
- the new result.
-