Package com.plotsquared.core.events
Class PlotUnlinkEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotUnlinkEvent
- All Implemented Interfaces:
CancellablePlotEvent
Event called when several merged plots are unlinked
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPlotUnlinkEvent
(@NonNull PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) PlotUnlinkEvent: Called when a mega plot is unlinked -
Method Summary
Modifier and TypeMethodDescriptiongetArea()
boolean
boolean
void
setCreateRoad
(boolean createRoad) void
setCreateSign
(boolean createSign) 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
-
PlotUnlinkEvent
public PlotUnlinkEvent(@NonNull PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) PlotUnlinkEvent: Called when a mega plot is unlinked- Parameters:
area
- The applicable plot areaplot
- The plot being unlinked fromcreateRoad
- Whether to regenerate the roadcreateSign
- Whether to regenerate signsreason
- ThePlotUnlinkEvent.REASON
for the unlink
-
-
Method Details
-
getEventResult
- Specified by:
getEventResult
in interfaceCancellablePlotEvent
-
setEventResult
- Specified by:
setEventResult
in interfaceCancellablePlotEvent
-
getArea
-
isCreateRoad
-
setCreateRoad
-
isCreateSign
-
setCreateSign
-
getReason
-