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
ConstructorsConstructorDescriptionPlotRateEvent(PlotPlayer<?> rater, @Nullable Rating rating, Plot plot) PlotRateEvent: Called when a player rates a plot -
Method Summary
Modifier and TypeMethodDescriptionThe currently setResultfor this event (as set by potential previous event listeners).PlotPlayer<?> getRater()voidSet theResultfor this event.voidMethods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CancellablePlotEventThe currently setResultfor this event (as set by potential previous event listeners).- Specified by:
getEventResultin interfaceCancellablePlotEvent- Returns:
- the current result.
-
setEventResult
Description copied from interface:CancellablePlotEventSet theResultfor this event.- Specified by:
setEventResultin interfaceCancellablePlotEvent- Parameters:
e- the new result.
-