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 TypeMethodDescriptionObtain the schematic string as used by theClaimcommand or null.voidvoidsetSchematic(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
- Specified by:
getEventResultin interfaceCancellablePlotEvent
-
setEventResult
- Specified by:
setEventResultin interfaceCancellablePlotEvent
-