Uses of Class
com.plotsquared.core.plot.Plot
Packages that use Plot
Package
Description
Contains events which are fired after specific actions are completed.
-
Uses of Plot in com.plotsquared.core
Fields in com.plotsquared.core with type parameters of type PlotMethods in com.plotsquared.core that return types with arguments of type PlotModifier and TypeMethodDescriptionPlotAPI.getAllPlots()
Gets all plots.PlotAPI.getPlayerPlots
(@NonNull PlotPlayer<?> player) Gets all plots for a player.PlotSquared.sortPlots
(@NonNull Collection<Plot> plots, @NonNull PlotSquared.SortType type, @Nullable PlotArea priorityArea) Sort a collection of plots by world (with a priority world), then by hashcode.PlotSquared.sortPlotsByTemp
(Collection<Plot> plots) Methods in com.plotsquared.core with parameters of type PlotModifier and TypeMethodDescriptionboolean
PlotSquared.removePlot
(@NonNull Plot plot, boolean callEvent) Unregisters a plot from local memory without calling the database.Method parameters in com.plotsquared.core with type arguments of type PlotModifier and TypeMethodDescriptionvoid
PlotSquared.forEachPlotRaw
(@NonNull Consumer<Plot> consumer) void
PlotSquared.sortPlots
(@NonNull Collection<Plot> plots, @NonNull PlotSquared.SortType type, @Nullable PlotArea priorityArea) Sort a collection of plots by world (with a priority world), then by hashcode.PlotSquared.sortPlotsByTemp
(Collection<Plot> plots) -
Uses of Plot in com.plotsquared.core.backup
Methods in com.plotsquared.core.backup with parameters of type PlotModifier and TypeMethodDescriptionvoid
BackupManager.automaticBackup
(@Nullable PlotPlayer<?> player, @NonNull Plot plot, @NonNull Runnable whenDone) This will perform an automatic backup of the plot iff the plot has an owner, automatic backups are enabled.void
NullBackupManager.automaticBackup
(@Nullable PlotPlayer<?> plotPlayer, @NonNull Plot plot, @NonNull Runnable whenDone) void
SimpleBackupManager.automaticBackup
(@Nullable PlotPlayer<?> player, @NonNull Plot plot, @NonNull Runnable whenDone) static void
BackupManager.backup
(@Nullable PlotPlayer<?> player, @NonNull Plot plot, @NonNull Runnable whenDone) This will perform an automatic backup of the plot iff the plot has an owner, automatic backups are enabled.BackupManager.getProfile
(@NonNull Plot plot) Get the backup profile for a plot based on its current owner (if there is one)NullBackupManager.getProfile
(@NonNull Plot plot) SimpleBackupManager.getProfile
(@NonNull Plot plot) Constructors in com.plotsquared.core.backup with parameters of type PlotModifierConstructorDescriptionPlayerBackupProfile
(@NonNull UUID owner, @NonNull Plot plot, @NonNull BackupManager backupManager, @NonNull SchematicHandler schematicHandler) -
Uses of Plot in com.plotsquared.core.command
Methods in com.plotsquared.core.command with parameters of type PlotModifier and TypeMethodDescriptionstatic double
Like.getLikesPercentage
(Plot plot) Get the likes to dislike ratio of a plot as a percentage (in decimal form)boolean
Biome.set
(PlotPlayer<?> player, Plot plot, String value) boolean
Desc.set
(PlotPlayer<?> player, Plot plot, String desc) boolean
Owner.set
(PlotPlayer<?> player, Plot plot, String value) abstract boolean
SetCommand.set
(PlotPlayer<?> player, Plot plot, String value) boolean
SetHome.set
(PlotPlayer<?> player, Plot plot, String value) Method parameters in com.plotsquared.core.command with type arguments of type PlotModifier and TypeMethodDescriptionvoid
ListCmd.displayPlots
(PlotPlayer<?> player, List<Plot> plots, int pageSize, int page, String[] args) Condense.getPlots
(Collection<Plot> plots, int radius) static void
DatabaseCommand.insertPlots
(SQLManager manager, List<Plot> plots, PlotPlayer<?> player) -
Uses of Plot in com.plotsquared.core.database
Fields in com.plotsquared.core.database with type parameters of type PlotModifier and TypeFieldDescriptionSQLManager.plotTasks
plot plot_denied plot_helpers plot_trusted plot_comments plot_settings plot_ratingMethods in com.plotsquared.core.database that return types with arguments of type PlotModifier and TypeMethodDescriptionAbstractDB.getPlots()
DBFunc.getPlots()
SQLManager.getPlots()
Load all plots, helpers, denied, trusted, and every setting from DB into aHashMap
.Methods in com.plotsquared.core.database with parameters of type PlotModifier and TypeMethodDescriptionvoid
SQLManager.addPlotTask
(@NonNull Plot plot, SQLManager.UniqueStatement task) void
AbstractDB.clearInbox
(Plot plot, String inbox) Clears the specified inbox on the given plot.static void
DBFunc.clearInbox
(Plot plot, String inbox) void
SQLManager.clearInbox
(Plot plot, String inbox) void
AbstractDB.createPlotAndSettings
(Plot plot, Runnable whenDone) static void
DBFunc.createPlotAndSettings
(Plot plot, Runnable whenDone) Create a plot.void
SQLManager.createPlotAndSettings
(Plot plot, Runnable whenDone) void
AbstractDB.createPlotSafe
(Plot plot, Runnable success, Runnable failure) Creates a plot.static void
DBFunc.createPlotSafe
(Plot plot, Runnable success, Runnable failure) void
SQLManager.createPlotSafe
(Plot plot, Runnable success, Runnable failure) void
AbstractDB.createPlotSettings
(int id, Plot plot) Creates the plot settings.static void
DBFunc.createPlotSettings
(int id, Plot plot) Create plot settings.void
SQLManager.createPlotSettings
(int id, Plot plot) Creates plot settingsvoid
Deletes a plot.static void
Delete a plot.void
Delete a plot.void
AbstractDB.deleteComments
(Plot plot) Deletes all comments from the plot.static void
DBFunc.deleteComments
(Plot plot) Delete the comments in a plot.void
SQLManager.deleteComments
(Plot plot) void
AbstractDB.deleteDenied
(Plot plot) Removes all denied players from the plot.static void
DBFunc.deleteDenied
(Plot plot) Delete the denied list for a plot.void
SQLManager.deleteDenied
(Plot plot) void
AbstractDB.deleteHelpers
(Plot plot) void
SQLManager.deleteHelpers
(Plot plot) static void
DBFunc.deleteMembers
(Plot plot) Delete the members list for a plot.void
AbstractDB.deleteRatings
(Plot plot) static void
DBFunc.deleteRatings
(Plot plot) Delete the ratings for a plot.void
SQLManager.deleteRatings
(Plot plot) void
AbstractDB.deleteSettings
(Plot plot) static void
DBFunc.deleteSettings
(Plot plot) Deleting settings will 1) Delete any settings (flags and such) associated with the plot 2) Prevent any local changes to the plot from saving properly to the dbvoid
SQLManager.deleteSettings
(Plot plot) void
AbstractDB.deleteTrusted
(Plot plot) static void
DBFunc.deleteTrusted
(Plot plot) Delete the trusted list for a plot.void
SQLManager.deleteTrusted
(Plot plot) void
AbstractDB.getComments
(@NonNull Plot plot, String inbox, RunnableVal<List<PlotComment>> whenDone) Gets Plot comments.static void
DBFunc.getComments
(Plot plot, String inbox, RunnableVal<List<PlotComment>> whenDone) void
SQLManager.getComments
(@NonNull Plot plot, String inbox, RunnableVal<List<PlotComment>> whenDone) int
Gets the table entry ID.static int
Get a plot id.int
AbstractDB.getRatings
(Plot plot) Gets the ratings from the specified plot.DBFunc.getRatings
(Plot plot) SQLManager.getRatings
(Plot plot) void
static void
void
void
AbstractDB.removeComment
(Plot plot, PlotComment comment) Removes the specified comment from the given plot.static void
DBFunc.removeComment
(Plot plot, PlotComment comment) void
SQLManager.removeComment
(Plot plot, PlotComment comment) void
AbstractDB.removeDenied
(Plot plot, UUID uuid) Removes the specified player from the denied list of the specified plot.static void
DBFunc.removeDenied
(Plot plot, UUID uuid) void
SQLManager.removeDenied
(Plot plot, UUID uuid) void
AbstractDB.removeFlag
(Plot plot, PlotFlag<?, ?> flag) Remove a plot flag.static void
DBFunc.removeFlag
(Plot plot, PlotFlag<?, ?> flag) void
SQLManager.removeFlag
(Plot plot, PlotFlag<?, ?> flag) void
AbstractDB.removeMember
(Plot plot, UUID uuid) static void
DBFunc.removeMember
(Plot plot, UUID uuid) void
SQLManager.removeMember
(Plot plot, UUID uuid) void
AbstractDB.removeTrusted
(Plot plot, UUID uuid) Remove the specified player from the trust list of the specified plot.static void
DBFunc.removeTrusted
(Plot plot, UUID uuid) void
SQLManager.removeTrusted
(Plot plot, UUID uuid) void
Sets the plot alias.static void
void
void
AbstractDB.setComment
(Plot plot, PlotComment comment) Adds the specified comment to the given plot.static void
DBFunc.setComment
(Plot plot, PlotComment comment) void
SQLManager.setComment
(Plot plot, PlotComment comment) void
Denies the specified player from the given plot.static void
void
void
Sets plot flag.static void
void
void
static void
void
void
Sets the merged status for a plot.static void
void
void
Sets Plot owner.static void
Set the owner of a plotvoid
Set Plot ownervoid
AbstractDB.setPosition
(Plot plot, String position) Sets the plot home position.static void
DBFunc.setPosition
(Plot plot, String position) void
SQLManager.setPosition
(Plot plot, String position) void
Sets a rating for a plot.static void
void
void
AbstractDB.setTrusted
(Plot plot, UUID uuid) static void
DBFunc.setTrusted
(Plot plot, UUID uuid) void
SQLManager.setTrusted
(Plot plot, UUID uuid) Swaps the settings, helpers etc.static CompletableFuture<Boolean>
Method parameters in com.plotsquared.core.database with type arguments of type PlotModifier and TypeMethodDescriptionvoid
void
SQLManager.createPlots
(List<Plot> myList, Runnable whenDone) Create a plotvoid
AbstractDB.createPlotsAndData
(List<Plot> plots, Runnable whenDone) Creates all settings, and create default helpers, trusted + denied lists.static void
DBFunc.createPlotsAndData
(List<Plot> plots, Runnable whenDone) Create all settings + (trusted, denied, members)void
SQLManager.createPlotsAndData
(List<Plot> myList, Runnable whenDone) void
AbstractDB.validateAllPlots
(Set<Plot> toValidate) void
SQLManager.validateAllPlots
(Set<Plot> toValidate) static void
DBFunc.validatePlots
(Set<Plot> plots) -
Uses of Plot in com.plotsquared.core.events
Methods in com.plotsquared.core.events that return PlotModifier and TypeMethodDescriptionPlayerAutoPlotEvent.getPlot()
Returns null as the plots to be claimed haven't been chosen yet.PlayerAutoPlotsChosenEvent.getPlot()
Returns the plot at index 0 in the list of plots selected.PlotEvent.getPlot()
Obtain the plot involved in the eventMethods in com.plotsquared.core.events that return types with arguments of type PlotModifier and TypeMethodDescriptionPlayerAutoPlotsChosenEvent.getPlots()
Get the immutable list of plots selected to be claimed by the player.Method parameters in com.plotsquared.core.events with type arguments of type PlotModifier and TypeMethodDescriptionvoid
Set the plots to be claimed by the player.Constructors in com.plotsquared.core.events with parameters of type PlotModifierConstructorDescriptionPlayerClaimPlotEvent
(PlotPlayer<?> player, Plot plot, @Nullable String schematic) PlayerClaimPlotEvent: Called when a plot is claimed.PlayerEnterPlotEvent
(PlotPlayer<?> player, Plot plot) Called when a player leaves a plot.PlayerLeavePlotEvent
(PlotPlayer<?> player, Plot plot) PlayerLeavePlotEvent: Called when a player leaves a plotPlayerPlotDeniedEvent
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) PlayerPlotDeniedEvent: Called when the denied UUID list is modified for a plot.PlayerPlotHelperEvent
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) PlayerPlotHelperEvent: Called when a plot helper is added/removedPlayerPlotTrustedEvent
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) PlayerPlotTrustedEvent: Called when a plot trusted user is added/removedPlayerTeleportToPlotEvent
(PlotPlayer<?> player, Location from, Plot plot) Deprecated, for removal: This API element is subject to removal in a future version.PlayerTeleportToPlotEvent
(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) PlayerTeleportToPlotEvent: Called when a player teleports to a plotPlotAutoMergeEvent: Called when plots are automatically merged with /plot autoPlotChangeOwnerEvent
(PlotPlayer<?> initiator, Plot plot, @Nullable UUID oldOwner, @Nullable UUID newOwner, boolean hasOldOwner) PlotChangeOwnerEvent: Called when a plot's owner is change.PlotClaimedNotifyEvent
(Plot plot, boolean auto) New event instance.PlotClearEvent
(Plot plot) PlotComponentSetEvent
(Plot plot, String component, Pattern pattern) PlotComponentSetEvent: Called when a player attempts to set the component of a plot (e.g.PlotDeleteEvent
(Plot plot) PlotDoneEvent
(Plot plot) PlotDoneEvent: Called when a plot is being set as donePlotFlagAddEvent
(PlotFlag<?, ?> flag, Plot plot) PlotFlagAddEvent: Called when a Flag is added to a plot.protected
PlotFlagEvent
(Plot plot, PlotFlag<?, ?> flag) PlotFlagRemoveEvent
(PlotFlag<?, ?> flag, Plot plot) PlotFlagRemoveEvent: Called when a flag is removed from a plotPlotMergeEvent
(@NonNull String world, @NonNull Plot plot, @NonNull Direction dir, int max, PlotPlayer<?> player) PlotMergeEvent: Called when plots are mergedPlotPlayerEvent
(PlotPlayer<?> plotPlayer, Plot plot) PlotRateEvent
(PlotPlayer<?> rater, @Nullable Rating rating, Plot plot) PlotRateEvent: Called when a player rates a plotPlotUnlinkEvent
(@NonNull PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) PlotUnlinkEvent: Called when a mega plot is unlinkedConstructor parameters in com.plotsquared.core.events with type arguments of type PlotModifierConstructorDescriptionPlayerAutoPlotsChosenEvent
(PlotPlayer<?> player, List<Plot> plots) PlayerAutoPlotsChosenEvent: Called when one or more plots are chosen for a /plot auto -
Uses of Plot in com.plotsquared.core.events.post
Constructors in com.plotsquared.core.events.post with parameters of type PlotModifierConstructorDescriptionPostPlayerAutoPlotEvent
(PlotPlayer<?> plotPlayer, Plot plot) Instantiate a new PlayerAutoPlotPostEvent.PostPlotChangeOwnerEvent
(PlotPlayer<?> initiator, Plot plot, @Nullable UUID oldOwner) Instantiate a new PlotChangedOwnerEvent.PostPlotDeleteEvent
(Plot plot) Instantiate a new PlotDeleteEvent.PostPlotMergeEvent
(PlotPlayer<?> plotPlayer, Plot plot) Instantiate a new PlotMergedEvent.PostPlotUnlinkEvent
(Plot plot, PlotUnlinkEvent.REASON reason) Instantiate a new PlotUnlinkedEvent. -
Uses of Plot in com.plotsquared.core.generator
Methods in com.plotsquared.core.generator with parameters of type PlotModifier and TypeMethodDescriptionvoid
HybridUtils.analyzePlot
(Plot origin, RunnableVal<PlotAnalysis> whenDone) boolean
ClassicPlotManager.claimPlot
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
HybridPlotManager.clearPlot
(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) boolean
SquarePlotManager.clearPlot
(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) boolean
ClassicPlotManager.createRoadEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
HybridPlotManager.createRoadEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
ClassicPlotManager.createRoadSouth
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
HybridPlotManager.createRoadSouth
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
ClassicPlotManager.createRoadSouthEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
HybridPlotManager.createRoadSouthEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) ClassicPlotManager.getSignLoc
(@NonNull Plot plot) Retrieves the location of where a sign should be for a plot.HybridPlotManager.getSignLoc
(@NonNull Plot plot) Retrieves the location of where a sign should be for a plot.HybridPlotWorld.getSignLocation
(@NonNull Plot plot) boolean
ClassicPlotManager.removeRoadEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
ClassicPlotManager.removeRoadSouth
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
ClassicPlotManager.removeRoadSouthEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
HybridUtils.scheduleSingleRegionRoadUpdate
(Plot plot, int extend) boolean
HybridUtils.setupRoadSchematic
(Plot plot) boolean
ClassicPlotManager.unClaimPlot
(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable QueueCoordinator queue) -
Uses of Plot in com.plotsquared.core.inject.factory
Methods in com.plotsquared.core.inject.factory with parameters of type Plot -
Uses of Plot in com.plotsquared.core.listener
Methods in com.plotsquared.core.listener with parameters of type PlotModifier and TypeMethodDescriptionboolean
PlotListener.plotEntry
(PlotPlayer<?> player, Plot plot) boolean
PlotListener.plotExit
(PlotPlayer<?> player, Plot plot) -
Uses of Plot in com.plotsquared.core.location
Methods in com.plotsquared.core.location that return PlotModifier and TypeMethodDescriptionLocation.getOwnedPlot()
Get the ownedPlot
, if any, that contains this locationLocation.getOwnedPlotAbs()
Get the (absolute) ownedPlot
, if any, that contains this locationLocation.getPlot()
Get thePlot
, if any, that contains this locationLocation.getPlotAbs()
Get the absolutePlot
, if any, that contains this location -
Uses of Plot in com.plotsquared.core.player
Fields in com.plotsquared.core.player with type parameters of type PlotModifier and TypeFieldDescriptionstatic final MetaDataKey<Plot>
PlayerMetaDataKeys.TEMPORARY_LAST_PLOT
static final MetaDataKey<Plot>
PlayerMetaDataKeys.TEMPORARY_WORLD_EDIT_REGION_PLOT
Methods in com.plotsquared.core.player that return PlotMethods in com.plotsquared.core.player that return types with arguments of type PlotModifier and TypeMethodDescriptionPlotPlayer.getPlots()
Get aSet
of plots owned by this player.Return aSet
of all plots this player owns in a certain world.Methods in com.plotsquared.core.player with parameters of type PlotModifier and TypeMethodDescriptionstatic Collection<PlotPlayer<?>>
PlotPlayer.getDebugModePlayersInPlot
(@NonNull Plot plot) -
Uses of Plot in com.plotsquared.core.plot
Fields in com.plotsquared.core.plot with type parameters of type PlotMethods in com.plotsquared.core.plot that return PlotModifier and TypeMethodDescriptionPlot.fromString
(@Nullable PlotArea defaultArea, @NonNull String string) Gets a plot from a string e.g.Plot.getBasePlot
(boolean recalculate) The base plot is an arbitrary but specific connected plot.PlotCluster.getCenterPlot()
PlotArea.getNextFreePlot
(PlotPlayer<?> player, @Nullable PlotId start) PlotArea.getOwnedPlot
(@NonNull Location location) Get the owned base plot at a location.PlotArea.getOwnedPlot
(@NonNull PlotId id) PlotArea.getOwnedPlotAbs
(@NonNull Location location) Get the owned plot at a location.PlotArea.getOwnedPlotAbs
(@NonNull PlotId id) Get the owned Plot at a PlotId.Return a new/cached plot object at a given location.Gets the base plot at a location.PlotArea.getPlotAbs
(@NonNull Location location) Gets thePlot
at a location.PlotArea.getPlotAbs
(@NonNull PlotId id) Plot.getPlotFromString
(@Nullable PlotPlayer<?> player, @Nullable String arg, boolean message) Get the plot from a string.Plot.getRelative
(int x, int y) Gets the plot in a relative location
Note: May be null if the partial plot area does not include the relative locationPlot.getRelative
(@NonNull Direction direction) Gets the plot in a relative direction Note: May be null if the partial plot area does not include the relative locationPlot.getRelative
(PlotArea area, int x, int y) Methods in com.plotsquared.core.plot that return types with arguments of type PlotModifier and TypeMethodDescriptionPlotArea.getBasePlots()
Plot.getConnectedPlots()
Gets a set of plots connected (and including) this plot
- This result is cached globallyPlotArea.getPlotEntries()
PlotArea.getPlots()
A collection of the claimed plots in thisPlotArea
.PlotArea.getPlots
(@NonNull PlotPlayer<?> player) Deprecated.PlotArea.getPlotsAbs
(UUID uuid) PlotArea.getPlotSelectionOwned
(@NonNull PlotId pos1, @NonNull PlotId pos2) Get a set of owned plots within a selection (chooses the best algorithm based on selection size.PlotArea.getPlotsRaw()
Deprecated.Poorly implemented.Methods in com.plotsquared.core.plot with parameters of type PlotModifier and TypeMethodDescriptionboolean
boolean
PlotArea.addPlotAbs
(@NonNull Plot plot) boolean
PlotArea.addPlotIfAbsent
(@NonNull Plot plot) abstract boolean
PlotManager.claimPlot
(@NonNull Plot plot, @Nullable QueueCoordinator queue) abstract boolean
PlotManager.clearPlot
(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) PlotModificationManager.copy
(@NonNull Plot destination, @Nullable PlotPlayer<?> actor) Copy a plot to a location, both physically and the settingsabstract boolean
PlotManager.createRoadEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) Create the road east of the plot (not schematic-based)abstract boolean
PlotManager.createRoadSouth
(@NonNull Plot plot, @Nullable QueueCoordinator queue) Create the road south of the plot (not schematic-based)abstract boolean
PlotManager.createRoadSouthEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) Create the south-east corner of the road (intersection, not schematic-based)abstract Location
PlotManager.getSignLoc
(@NonNull Plot plot) Retrieves the location of where a sign should be for a plot.void
Merge the plot settings
- Used when a plot is mergedvoid
Plot.mergePlot
(Plot lesserPlot, boolean removeRoads, @Nullable QueueCoordinator queue) Merges two plots.PlotModificationManager.move
(@NonNull Plot destination, @Nullable PlotPlayer<?> actor, @NonNull Runnable whenDone) Moves the plot to an empty location
- The location must be emptyPlotModificationManager.move
(@NonNull Plot destination, @Nullable PlotPlayer<?> actor, @NonNull Runnable whenDone, boolean allowSwap) Moves a plot physically, as well as the corresponding settings.boolean
Moves the settings for a plot.abstract boolean
PlotManager.removeRoadEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) Replace the road to the east of the plot with standard plot blocks (for when merging plots)abstract boolean
PlotManager.removeRoadSouth
(@NonNull Plot plot, @Nullable QueueCoordinator queue) Replace the road to the south of the plot with standard plot blocks (for when merging plots)abstract boolean
PlotManager.removeRoadSouthEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) Replace the road to the south east of the plot (intersection) with standard plot blocks (for when merging plots)static boolean
PlotHandler.sameOwners
(Plot plot1, Plot plot2) PlotModificationManager.swap
(@NonNull Plot destination, @Nullable PlotPlayer<?> actor, @NonNull Runnable whenDone) Swap the plot contents and settings with another location
- The destination must correspond to a valid plot of equal dimensionsSwaps the settings for two plots.abstract boolean
PlotManager.unClaimPlot
(@NonNull Plot plot, @Nullable Runnable whenDone, @Nullable QueueCoordinator queue) Completes block changes associated with plot unclaim.Method parameters in com.plotsquared.core.plot with type arguments of type Plot -
Uses of Plot in com.plotsquared.core.plot.comment
Methods in com.plotsquared.core.plot.comment with parameters of type PlotModifier and TypeMethodDescriptionabstract boolean
CommentInbox.addComment
(Plot plot, PlotComment comment) boolean
InboxOwner.addComment
(Plot plot, PlotComment comment) boolean
InboxPublic.addComment
(Plot plot, PlotComment comment) boolean
InboxReport.addComment
(Plot plot, PlotComment comment) boolean
CommentInbox.canModify
(Plot plot, PlotPlayer<?> player) boolean
CommentInbox.canRead
(Plot plot, PlotPlayer<?> player) boolean
CommentInbox.canWrite
(Plot plot, PlotPlayer<?> player) void
CommentInbox.clearInbox
(Plot plot) abstract boolean
CommentInbox.getComments
(Plot plot, RunnableVal<List<PlotComment>> whenDone)
The `whenDone` parameter should be executed when it's done fetching the comments.boolean
InboxOwner.getComments
(Plot plot, RunnableVal<List<PlotComment>> whenDone) boolean
InboxPublic.getComments
(Plot plot, RunnableVal<List<PlotComment>> whenDone) boolean
InboxReport.getComments
(Plot plot, RunnableVal<List<PlotComment>> whenDone) void
CommentInbox.removeComment
(Plot plot, PlotComment comment) static void
CommentManager.sendTitle
(PlotPlayer<?> player, Plot plot) -
Uses of Plot in com.plotsquared.core.plot.expiration
Methods in com.plotsquared.core.plot.expiration that return types with arguments of type PlotMethods in com.plotsquared.core.plot.expiration with parameters of type PlotModifier and TypeMethodDescriptionstatic void
PlotAnalysis.analyzePlot
(Plot plot, RunnableVal<PlotAnalysis> whenDone) void
ExpireManager.deleteWithMessage
(Plot plot, Runnable whenDone) long
static PlotAnalysis
PlotAnalysis.getAnalysis
(Plot plot, Settings.Auto_Clear settings) void
ExpireManager.handleEntry
(PlotPlayer<?> pp, Plot plot) ExpireManager.isExpired
(ArrayDeque<ExpiryTask> applicable, Plot plot) void
ExpireManager.updateExpired
(Plot plot) Method parameters in com.plotsquared.core.plot.expiration with type arguments of type PlotModifier and TypeMethodDescriptionboolean
ExpireManager.runTask
(RunnableVal3<Plot, Runnable, Boolean> expiredTask) -
Uses of Plot in com.plotsquared.core.plot.flag.implementations
Methods in com.plotsquared.core.plot.flag.implementations with parameters of type PlotModifier and TypeMethodDescriptionstatic boolean
DenyTeleportFlag.allowsTeleport
(PlotPlayer<?> player, Plot plot) static boolean
-
Uses of Plot in com.plotsquared.core.plot.world
Subclasses of Plot in com.plotsquared.core.plot.worldMethods in com.plotsquared.core.plot.world that return PlotModifier and TypeMethodDescriptionprotected Plot
SinglePlotArea.getOwnedPlot
(@NonNull Location location) SinglePlotArea.getOwnedPlotAbs
(@NonNull Location location) SinglePlotArea.getPlotAbs
(@NonNull Location location) SinglePlotArea.getPlotAbs
(@NonNull PlotId id) Methods in com.plotsquared.core.plot.world with parameters of type PlotModifier and TypeMethodDescriptionprotected Plot
boolean
boolean
SinglePlotArea.addPlotAbs
(@NonNull Plot plot) boolean
SinglePlotArea.addPlotIfAbsent
(@NonNull Plot plot) boolean
SinglePlotManager.claimPlot
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
SinglePlotManager.clearPlot
(@NonNull Plot plot, Runnable whenDone, @Nullable PlotPlayer<?> actor, @Nullable QueueCoordinator queue) boolean
SinglePlotManager.createRoadEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
SinglePlotManager.createRoadSouth
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
SinglePlotManager.createRoadSouthEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) SinglePlotManager.getSignLoc
(@NonNull Plot plot) boolean
SinglePlotManager.removeRoadEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
SinglePlotManager.removeRoadSouth
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
SinglePlotManager.removeRoadSouthEast
(@NonNull Plot plot, @Nullable QueueCoordinator queue) boolean
SinglePlotManager.unClaimPlot
(@NonNull Plot plot, Runnable whenDone, @Nullable QueueCoordinator queue) -
Uses of Plot in com.plotsquared.core.services.plots
Fields in com.plotsquared.core.services.plots with type parameters of type PlotMethods in com.plotsquared.core.services.plots that return types with arguments of type PlotModifier and TypeMethodDescriptionAutoService.DefaultAutoService.handle
(@NonNull AutoService.AutoQuery autoQuery) AutoService.MultiPlotService.handle
(@NonNull AutoService.AutoQuery autoQuery) AutoService.SinglePlotService.handle
(@NonNull AutoService.AutoQuery autoQuery) -
Uses of Plot in com.plotsquared.core.util
Methods in com.plotsquared.core.util with parameters of type PlotModifier and TypeMethodDescriptionEventDispatcher.callAutoMerge
(Plot plot, List<PlotId> plots) EventDispatcher.callClaim
(PlotPlayer<?> player, Plot plot, String schematic) EventDispatcher.callComponentSet
(Plot plot, String component, Pattern pattern) EventDispatcher.callDelete
(Plot plot) EventDispatcher.callDenied
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) EventDispatcher.callEntry
(PlotPlayer<?> player, Plot plot) EventDispatcher.callFlagAdd
(PlotFlag<?, ?> flag, Plot plot) EventDispatcher.callFlagRemove
(PlotFlag<?, ?> flag, Plot plot) EventDispatcher.callLeave
(PlotPlayer<?> player, Plot plot) EventDispatcher.callMember
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) EventDispatcher.callMerge
(Plot plot, Direction dir, int max, PlotPlayer<?> player) EventDispatcher.callOwnerChange
(PlotPlayer<?> initiator, Plot plot, UUID oldOwner, UUID newOwner, boolean hasOldOwner) EventDispatcher.callPlotClaimedNotify
(Plot plot, boolean auto) EventDispatcher.callPostAuto
(PlotPlayer<?> player, Plot plot) EventDispatcher.callPostDelete
(Plot plot) EventDispatcher.callPostMerge
(PlotPlayer<?> player, Plot plot) EventDispatcher.callPostOwnerChange
(PlotPlayer<?> player, Plot plot, @Nullable UUID oldOwner) EventDispatcher.callPostUnlink
(Plot plot, PlotUnlinkEvent.REASON reason) EventDispatcher.callRating
(PlotPlayer<?> player, Plot plot, Rating rating) EventDispatcher.callTeleport
(PlotPlayer<?> player, Location from, Plot plot, TeleportCause cause) EventDispatcher.callTrusted
(PlotPlayer<?> initiator, Plot plot, UUID player, boolean added) EventDispatcher.callUnlink
(PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) static boolean
EntityUtil.checkEntity
(Plot plot, PlotFlag<Integer, ?>... flags) TabCompletions.completeAddedPlayers
(@NonNull PlotPlayer<?> issuer, @NonNull Plot plot, @NonNull String input, @NonNull List<String> existing) Get a list of tab completions corresponding to player names added to the given plot.TabCompletions.completeAddedPlayers
(@NonNull Plot plot, @NonNull String input, @NonNull List<String> existing) Deprecated, for removal: This API element is subject to removal in a future version.TabCompletions.completePlayersInPlot
(@NonNull Plot plot, @NonNull String input, @NonNull List<String> existing) abstract int[]
RegionManager.countEntities
(Plot plot) 0 = Entity 1 = Animal 2 = Monster 3 = Mob 4 = Boat 5 = MiscSchematicHandler.getCompoundTag
(@NonNull Plot plot) Get the given plot asCompoundTag
matching the Sponge schematic format.abstract boolean
RegionManager.handleClear
(@NonNull Plot plot, @Nullable Runnable whenDone, @NonNull PlotManager manager, @Nullable PlotPlayer<?> actor) Only called whenRegionManager.notifyClear(PlotManager)
returns true in specific PlotManagersvoid
SchematicHandler.paste
(Schematic schematic, Plot plot, int xOffset, int yOffset, int zOffset, boolean autoHeight, PlotPlayer<?> actor, RunnableVal<Boolean> whenDone) Paste a schematic.Upload a plot and retrieve a result.void
WorldUtil.upload
(@NonNull Plot plot, @Nullable UUID uuid, @Nullable String file, @NonNull RunnableVal<URL> whenDone) Deprecated, for removal: This API element is subject to removal in a future version.Method parameters in com.plotsquared.core.util with type arguments of type PlotModifier and TypeMethodDescriptionEventDispatcher.callAutoPlotsChosen
(PlotPlayer<?> player, List<Plot> plots) boolean
SchematicHandler.exportAll
(Collection<Plot> collection, File outputDir, String namingScheme, Runnable ifSuccess) -
Uses of Plot in com.plotsquared.core.util.placeholders
Methods in com.plotsquared.core.util.placeholders with parameters of type PlotModifier and TypeMethodDescriptionPlotFlagPlaceholder.getValue
(@NonNull PlotPlayer<?> player, @NonNull Plot plot) PlotSpecificPlaceholder.getValue
(@NonNull PlotPlayer<?> player, @NonNull Plot plot) Method parameters in com.plotsquared.core.util.placeholders with type arguments of type PlotModifier and TypeMethodDescriptionvoid
PlaceholderRegistry.createPlaceholder
(@NonNull String key, @NonNull BiFunction<PlotPlayer<?>, Plot, String> placeholderFunction) Create a functional placeholder -
Uses of Plot in com.plotsquared.core.util.query
Methods in com.plotsquared.core.util.query that return types with arguments of type PlotModifier and TypeMethodDescriptionPlotQuery.asCollection()
Get all plots that match the given criteriaPlotQuery.asList()
Get all plots that match the given criteriaPlotQuery.asSet()
Get all plots that match the given criteriaPlotQuery.asStream()
Get all plots that match the given criteriaPaginatedPlotResult.getPage
(int page) Get the plots belonging to a certain page.PlotQuery.iterator()
Methods in com.plotsquared.core.util.query with parameters of type PlotModifier and TypeMethodDescriptionQuery with a pre-defined resultMethod parameters in com.plotsquared.core.util.query with type arguments of type Plot -
Uses of Plot in com.plotsquared.core.util.task
Constructors in com.plotsquared.core.util.task with parameters of type PlotModifierConstructorDescriptionAutoClaimFinishTask
(PlotPlayer<?> player, Plot plot, PlotArea area, String schematic, EventDispatcher eventDispatcher)
PlayerTeleportToPlotEvent(PlotPlayer, Location, Plot, TeleportCause)
.