Package com.plotsquared.core.util
Class EventDispatcher
java.lang.Object
com.plotsquared.core.util.EventDispatcher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncallAuto
(PlotPlayer<?> player, PlotArea area, String schematic, int size_x, int size_z) callAutoMerge
(Plot plot, List<PlotId> plots) callAutoPlotsChosen
(PlotPlayer<?> player, List<Plot> plots) callClaim
(PlotPlayer<?> player, Plot plot, String schematic) callComponentSet
(Plot plot, String component, Pattern pattern) callDelete
(Plot plot) callDenied
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) callEntry
(PlotPlayer<?> player, Plot plot) void
callFlagAdd
(PlotFlag<?, ?> flag, Plot plot) callFlagRemove
(PlotFlag<?, ?> flag, Plot plot) void
callGenericEvent
(@NonNull Object event) callLeave
(PlotPlayer<?> player, Plot plot) callMember
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) callMerge
(Plot plot, Direction dir, int max, PlotPlayer<?> player) callOwnerChange
(PlotPlayer<?> initiator, Plot plot, UUID oldOwner, UUID newOwner, boolean hasOldOwner) callPlotClaimedNotify
(Plot plot, boolean auto) callPostAuto
(PlotPlayer<?> player, Plot plot) callPostDelete
(Plot plot) callPostMerge
(PlotPlayer<?> player, Plot plot) callPostOwnerChange
(PlotPlayer<?> player, Plot plot, @Nullable UUID oldOwner) callPostUnlink
(Plot plot, PlotUnlinkEvent.REASON reason) callRating
(PlotPlayer<?> player, Plot plot, Rating rating) callRemoveRoadEntity
(Entity entity) callTeleport
(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) callTrusted
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) callUnlink
(PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) boolean
checkPlayerBlockEvent
(PlotPlayer<?> player, @NonNull PlayerBlockEventType type, Location location, BlockType blockType, boolean notifyPerms) void
doJoinTask
(PlotPlayer<?> player) void
doRespawnTask
(PlotPlayer<?> player) void
registerListener
(Object listener) void
void
unregisterListener
(Object listener)
-
Constructor Details
-
EventDispatcher
-
-
Method Details
-
registerListener
-
unregisterListener
-
unregisterAll
-
callGenericEvent
-
callEvent
-
callClaim
-
callAuto
public PlayerAutoPlotEvent callAuto(PlotPlayer<?> player, PlotArea area, String schematic, int size_x, int size_z) -
callPostAuto
-
callAutoPlotsChosen
-
callPlotClaimedNotify
-
callTeleport
public PlayerTeleportToPlotEvent callTeleport(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) -
callComponentSet
-
callClear
-
callDelete
-
callPostDelete
-
callFlagAdd
-
callFlagRemove
-
callMerge
-
callPostMerge
-
callAutoMerge
-
callUnlink
public PlotUnlinkEvent callUnlink(PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) -
callPostUnlink
-
callEntry
-
callLeave
-
callDenied
public PlayerPlotDeniedEvent callDenied(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) -
callTrusted
public PlayerPlotTrustedEvent callTrusted(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) -
callMember
public PlayerPlotHelperEvent callMember(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) -
callOwnerChange
public PlotChangeOwnerEvent callOwnerChange(PlotPlayer<?> initiator, Plot plot, UUID oldOwner, UUID newOwner, boolean hasOldOwner) -
callPostOwnerChange
public PostPlotChangeOwnerEvent callPostOwnerChange(PlotPlayer<?> player, Plot plot, @Nullable UUID oldOwner) -
callRating
-
callDone
-
callRemoveRoadEntity
-
doJoinTask
-
doRespawnTask
-
checkPlayerBlockEvent
public boolean checkPlayerBlockEvent(PlotPlayer<?> player, @NonNull PlayerBlockEventType type, Location location, BlockType blockType, boolean notifyPerms)
-