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
ConstructorDescriptionPlayerClaimPlotEvent
(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 theClaim
command or null.void
void
setSchematic
(String schematic) Set the schematic string used in the claim.Methods inherited from class com.plotsquared.core.events.PlotPlayerEvent
getPlotPlayer
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
-
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 theClaim
command or null.- Returns:
- schematic string
-
setSchematic
Set the schematic string used in the claim.- Parameters:
schematic
- the schematic name
-
getEventResult
- Specified by:
getEventResult
in interfaceCancellablePlotEvent
-
setEventResult
- Specified by:
setEventResult
in interfaceCancellablePlotEvent
-