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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlotUnlinkEvent(@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()booleanbooleanvoidsetCreateRoad(boolean createRoad) voidsetCreateSign(boolean createSign) 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
-
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.REASONfor the unlink
-
-
Method Details
-
getEventResult
- Specified by:
getEventResultin interfaceCancellablePlotEvent
-
setEventResult
- Specified by:
setEventResultin interfaceCancellablePlotEvent
-
getArea
-
isCreateRoad
public boolean isCreateRoad() -
setCreateRoad
public void setCreateRoad(boolean createRoad) -
isCreateSign
public boolean isCreateSign() -
setCreateSign
public void setCreateSign(boolean createSign) -
getReason
-