Package com.plotsquared.core.events
Class PlotMergeEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotPlayerEvent
com.plotsquared.core.events.PlotMergeEvent
- All Implemented Interfaces:
CancellablePlotEvent
Event called when several plots are merged
-
Constructor Summary
ConstructorDescriptionPlotMergeEvent
(@NonNull String world, @NonNull Plot plot, @NonNull Direction dir, int max, PlotPlayer<?> player) PlotMergeEvent: Called when plots are merged -
Method Summary
Modifier and TypeMethodDescriptiongetDir()
int
getMax()
PlotPlayer<?>
getWorld()
void
void
void
setMax
(int max) 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
-
PlotMergeEvent
public PlotMergeEvent(@NonNull String world, @NonNull Plot plot, @NonNull Direction dir, int max, PlotPlayer<?> player) PlotMergeEvent: Called when plots are merged- Parameters:
world
- World in which the event occurredplot
- Plot that was mergeddir
- The direction of the mergemax
- Max merge sizeplayer
- The player attempting the merge
-
-
Method Details
-
getEventResult
- Specified by:
getEventResult
in interfaceCancellablePlotEvent
-
setEventResult
- Specified by:
setEventResult
in interfaceCancellablePlotEvent
-
getWorld
-
getDir
-
setDir
-
getMax
-
setMax
-
getPlayer
-