Package com.plotsquared.core.util
Class EventDispatcher
java.lang.Object
com.plotsquared.core.util.EventDispatcher
-
Constructor Summary
Constructors -
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, com.sk89q.worldedit.function.pattern.Pattern pattern) callDelete(Plot plot) callDenied(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) Deprecated, for removal: This API element is subject to removal in a future version.callEntry(PlotPlayer<?> player, Plot plot) voidcallFlagAdd(PlotFlag<?, ?> flag, Plot plot) callFlagRemove(PlotFlag<?, ?> flag, Plot plot) voidcallGenericEvent(@NonNull Object event) callLeave(PlotPlayer<?> player, Plot plot) callMember(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) Deprecated, for removal: This API element is subject to removal in a future version.callMerge(Plot plot, Direction dir, int max, PlotPlayer<?> player) callOwnerChange(PlotPlayer<?> initiator, Plot plot, UUID oldOwner, UUID newOwner, boolean hasOldOwner) callPlayerAdd(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) callPlayerBuyPlot(PlotPlayer<?> player, Plot plot, double price) callPlayerDeny(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) callPlayerPlotLimit(PlotPlayer<?> player, int calculatedLimit) callPlayerRemove(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) callPlayerTrust(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) callPlotClaimedNotify(Plot plot, boolean auto) callPostAdded(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added, PlayerPlotAddRemoveEvent.Reason reason) callPostAuto(PlotPlayer<?> player, Plot plot) callPostDelete(Plot plot) callPostDenied(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added, PlayerPlotAddRemoveEvent.Reason reason) callPostMerge(PlotPlayer<?> player, Plot plot) callPostOwnerChange(PlotPlayer<?> player, Plot plot, @Nullable UUID oldOwner) voidcallPostPlayerBuyPlot(PlotPlayer<?> player, OfflinePlotPlayer previousOwner, Plot plot, double price) callPostPlotClear(PlotPlayer<?> player, Plot plot) callPostTrusted(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added, PlayerPlotAddRemoveEvent.Reason reason) callPostUnlink(Plot plot, PlotUnlinkEvent.REASON reason) callRating(PlotPlayer<?> player, Plot plot, Rating rating) callRemoveRoadEntity(com.sk89q.worldedit.entity.Entity entity) callTeleport(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) callTrusted(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) Deprecated, for removal: This API element is subject to removal in a future version.callUnlink(PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) booleancheckPlayerBlockEvent(PlotPlayer<?> player, @NonNull PlayerBlockEventType type, Location location, com.sk89q.worldedit.world.block.BlockType blockType, boolean notifyPerms) voiddoJoinTask(PlotPlayer<?> player) voiddoRespawnTask(PlotPlayer<?> player) voidregisterListener(Object listener) voidvoidunregisterListener(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
public PlotComponentSetEvent callComponentSet(Plot plot, String component, com.sk89q.worldedit.function.pattern.Pattern pattern) -
callClear
-
callPostPlotClear
-
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
@Deprecated(forRemoval=true, since="7.6.0") public PlayerPlotDeniedEvent callDenied(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) Deprecated, for removal: This API element is subject to removal in a future version. -
callTrusted
@Deprecated(forRemoval=true, since="7.6.0") public PlayerPlotTrustedEvent callTrusted(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) Deprecated, for removal: This API element is subject to removal in a future version. -
callMember
@Deprecated(forRemoval=true, since="7.6.0") public PlayerPlotHelperEvent callMember(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) Deprecated, for removal: This API element is subject to removal in a future version. -
callPostDenied
public PostPlayerPlotDeniedEvent callPostDenied(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added, PlayerPlotAddRemoveEvent.Reason reason) -
callPostTrusted
public PostPlayerPlotTrustedEvent callPostTrusted(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added, PlayerPlotAddRemoveEvent.Reason reason) -
callPostAdded
public PostPlayerPlotAddedEvent callPostAdded(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added, PlayerPlotAddRemoveEvent.Reason reason) -
callPlayerDeny
public PlayerPlotDenyEvent callPlayerDeny(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) -
callPlayerTrust
public PlayerPlotTrustEvent callPlayerTrust(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) -
callPlayerAdd
public PlayerPlotAddEvent callPlayerAdd(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) -
callPlayerRemove
public PlayerPlotRemoveEvent callPlayerRemove(PlotPlayer<?> initiator, Plot plot, UUID player, PlayerPlotAddRemoveEvent.Reason reason) -
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
-
callPlayerPlotLimit
-
callPlayerBuyPlot
-
callPostPlayerBuyPlot
public void callPostPlayerBuyPlot(PlotPlayer<?> player, OfflinePlotPlayer previousOwner, Plot plot, double price) -
doJoinTask
-
doRespawnTask
-
checkPlayerBlockEvent
public boolean checkPlayerBlockEvent(PlotPlayer<?> player, @NonNull PlayerBlockEventType type, Location location, com.sk89q.worldedit.world.block.BlockType blockType, boolean notifyPerms)
-