Package com.plotsquared.core.events
Class PlayerClaimPlotEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotPlayerEvent
com.plotsquared.core.events.PlayerClaimPlotEvent
- All Implemented Interfaces:
CancellablePlotEvent
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerClaimPlotEvent(PlotPlayer<?> player, Plot plot, @Nullable String schematic) PlayerClaimPlotEvent: Called when a plot is claimed. -
Method Summary
Modifier and TypeMethodDescriptionThe currently setResultfor this event (as set by potential previous event listeners).@Nullable StringObtain the schematic string as used by theClaimcommand or null.voidSet theResultfor this event.voidsetSchematic(String schematic) Set the schematic string used in the claim.Methods inherited from class com.plotsquared.core.events.PlotPlayerEvent
getPlotPlayerMethods 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
-
PlayerClaimPlotEvent
PlayerClaimPlotEvent: Called when a plot is claimed.- Parameters:
player- Player that claimed the plotplot- Plot that was claimedschematic- The schematic defined or null
-
-
Method Details
-
getSchematic
Obtain the schematic string as used by theClaimcommand or null.- Returns:
- schematic string
-
setSchematic
Set the schematic string used in the claim.- Parameters:
schematic- the schematic name
-
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.
-