Skip to content

Commands

Jeremiah Osborne edited this page Jun 9, 2024 · 26 revisions

Below, each command that currently exists in the plugin is identified one by one:

Rather than typing '/displayshops <args>' to access/invoke commands the alias '/ds <args>' can be used for short. This also provides the user to have more character space when typing out commands and avoid the character limit given by default Minecraft.


User Commands

Command Description
/displayshops buy Purchases one shop creation item from the server directly using the price 'creation-item-price' defined in the 'config.yml'
/displayshops delete Deletes the shop currently in-sight. This will only follow through if the player has ownership or administrator permissions over the shop.
/displayshops [rent/renew/time] Rents, renews, or views remaining time the market region located at the player's current location.
/displayshops [rent/renew/time] [id] Rents, renews, or views remaining time the market region entered.
/displayshops advertise Advertises the shop that is currently in sight.
/displayshops visit Opens the shop visit menu.
/displayshops visit filter [key] Opens the shop visit menu /w the specified filter in mind.
/displayshops notify Toggles shop sale notifications for the sender.
/displayshops [withdraw/deposit] [amount] Withdraws/Deposits stock from/into the shop (if accessible by the player).
/displayshops [balance/bal] [withdraw/w/deposit/d] [amount] Withdraws/Deposits balance from/to the shop (if accessible by the player).

Admin Commands

Command Description
/displayshops reload Reloads all shops and the configuration file. This command also attempts to restart all tasks and even save/reload all currently accessible shops.
/displayshops info Provides information about the current build of the plugin. This command will show authors, current version, and the latest version found on the Spigot page in terms of information provided.
/displayshops give [player] [amount] Gives the entered player the defined amount of shop creation items in the form of itemstacks.
/displayshops admin Turns the shop currently in-sight into an administrator shop. If the shop is already an administrator shop, the owner command will need to be used instead to convert it back into a normal shop.
/displayshops stock [amount] Sets the stock count of the shop currently in-sight to the defined amount. If the amount is set below zero (must be an administrator shop), the shop will have no limit in terms of stock. This amount can NOT exceed the 'max-shop-stock' value found in the 'config.yml'.
/displayshops visit [shop-id] Attempts to visit the shop's location.
/displayshops copy Copies the shop's ID that is currently in sight. (This was removed in v2.0+)
/displayshops id Allows the player to retrieve the ID of a shop in view. (This was added in v2.0+)
/displayshops owner [player] Sets the owner of the shop currently in-sight to the defined player. This is used to transfer ownership on an administrator level. This command can be used to revert a shop to a normal state rather than an administrator.
/displayshops [addcommand/addcmd] [command] Adds a command to the shop currently in-sight which will run when a player purchases from a shop. For the first argument, 'addcommand' or 'addcmd' can be used and the command itself must NOT have a slash (/) and end with either ':PLAYER' or ':CONSOLE' to identify how/where the command is run.
/displayshops [removecommand/removecmd] [index] Removes a command from the shop currently in-sight. When commands are added to a shop, they start with index zero and increase. The defined index will be the command that is removed from the shop.
/displayshops commands Sends a nice list of all commands that are attached to the shop currently in-sight. The order at which the commands appear defines the command's index. For example, the first in the list will have an index of zero while the others are increments leading up to the total size of the list.
/displayshops [commandmode/cm] Toggles command mode for the shop currently in-sight. The argument 'commandmode' or 'cm' can be used here. Command only mode means that when a player buys from the shop, they will NOT get the shop item and the commands will be the only actions performed.
/displayshops [selectionmode/sm] Toggles selection mode for the shop currently in-sight. The argument 'selectionmode' or 'sm' can be used here. Selection mode is used to select a LOW and HIGH point of a rectangular area to define the region for a market region.
/displayshops [createmarketregion/cmr] [id] Creates a new market region using an existing region obtained from selection mode and the defined ID. The argument 'createmarketregion' or 'cmr' can be used here.
/displayshops [deletemarketregion/dmr] [id] Deletes an existing market region at the defined ID. The argument 'deletemarketregion' or 'dmr' can be used here.
/displayshops [marketregionlist/mrl] Obtains a full list of all existing market region IDs. The argument 'marketregionlist' or 'mrl' can be used here.
/displayshops cost [region] [cost] Sets the initial rent cost of the defined region (if no region is specified, then the current location is used).
/displayshops [renewcost/rcost] [region] [cost] Sets the rent renewal cost of the defined region (if no region is specified, then the current location is used).
/displayshops unlock [player] [appearance] Unlocks all appearances (or a specific appearance) for the provided player ([appearance] is Optional).
/displayshops lock [player] [appearance] Locks all appearances (or a specific appearance) for the provided player ([appearance] is Optional).
/displayshops clear [world] Clears (Deletes) all shops found in the defined world.
/displayshops cleanup Cleans all semi-broken to broken shops found throughout the virtual memory.
/displayshops cdb Cleans all the entire database of invalid data that is no longer needed.
/displayshops reset Resets the market region at the player's current location (Clears shops, rent, etc.).
/displayshops reset [id] Resets the market region entered (Clears shops, rent, etc.).
/displayshops [block/unblock] Blocks and un-blocks the held item from being sold in shops.
/displayshops kill [stand/drop] [radius] Kills all ArmorStands or Drops in a defined radius (not specifying a radius defaults to 8).