Repository navigation
Commands
Commands in PlayerShopRPG come in two varieties, those that are executed directly by the player, and those that a executed indirectly via a text-click action. Commands suffixed by a * are executed indirectly. Note: even if a command is executed indirectly by a player they still need the permission node for it!
With the exception of the /shop, /shop select, and /shop create commands, you must execute commands within the region of the shop you want to affect.
You can find the permission nodes for these commands as well a permission nodes for other aspects of PlayerShopsRPG Here.
- Shop - display plugin info
- Select - select a shop region to be created
- Create - creates a shop from a selected region
- Destroy - destroys a shop
- Browse - browses a shop
- Buy - purchases a shop
- Rent - rents a shop
- Item Create - creates an item in a shop
- Item Destroy* - destroys an item in a shop
- Item Add - stocks an item in a shop
- Item Remove* - unstocks an item from a shop
- Item Set* - sets various attributes of items in a shop
- Item Buy* - buys an item from a shop
- Item Sell* - sells an item from a shop
- Manager Add* - adds a manager to a shop
- Manager Remove* - removes a manager from a shop
- Set Name* - sets the name of a shop
- Set Owner* - sets the owner of a shop
- Set Type - sets the type of a shop
- Set Price* - sets the purchase price of a shop
- Set Rent* - sets the hourly rent of a shop
- Set Currency - sets the currency of a shop
- Set Unlimited - sets a shop to have unlimited money or stock
- Balance Withdraw* - withdraws funds from a shop
- Balance Deposit* - deposits funds to a shop
/shop
Returns some basic info about PlayerShopsRPG.
/shop select [cuboid|clear]
Selects a region to create a shop, you can optionally specify a selection type, currently only cuboid region selections are supported otherwise select with default to cuboid. You can also clear your selection by executing /shop select clear.
/shop create <ShopName>
Creates a shop with the given ShopName in a previously selected region. Shop names may contain spaces.
/shop destroy
Destroys the shop you are currently standing in. Careful with this one, there are no undos!
/shop browse [owner|manager]
Displays the contents of the shop, you can optionally specify owner or manager to jump to their appropriate tabs, assuming you have the proper permissions.
/shop buy
Purchases the shop you are currently standing in if it is for sale.
/shop rent <amount>
Rents the shop you are currently standing in for the number of hours equal to amount divided by the shop hourly rate. If you are already currently renting the shop, your rent duration will instead be extended.
/shop item create
"Creates" the item held in your hand in the shop, allowing it to be bought and sold.
/shop item destroy <index>
"Destroys" the item at shop index index, preventing it from being bought or sold. This destroys the stock of the item as well so be sure to remove it if you don't want it gone!
/shop item add
Stocks the item in your hand to the shop, removing it from your inventory and placing it in the shop's inventory.
/shop item remove <index> <amount>
Unstocks amount of item at shop index index, removing it from the shop's inventory and placing it in yours.
/shop item set <max|buy|sell> <index> <amount>
Sets attributes of item at shop index index such at buy/sell prices and max amount the shop will hold.
/shop item buy <index> <amount>
Buys amount of item at shop index index from the shop.
/shop item sell <index> <amount>
Sells amount of item at shop index index to the shop.
/shop manager add <player>
Adds player as a manager of the shop. Managers can stock and unstock items, as well as set item attributes such as buy/sell prices and the max amount the shop will hold. They cannot create or destroy items.
/shop manager remove <player>
Removes player as a manager of the shop.
/shop set name <name>
Changes the name of the shop to name.
/shop set owner <player>
Changes the owner of the shop to player. You can also set the owner to none to create an ownerless shop. Great for creating server/admin shops!
/shop set type <type>
Changes the shop type to type. You can also set the type to none to remove the shop type. You can read more about shop types Here.
/shop set price <price>
Sets the price at which other players can purchase the shop. You can also set the price to -1 to cancel selling the shop.
/shop set rent <rent>
Sets the price at which other players can rent the shop at an hourly rate. You can also set the price to -1 to cancel renting the shop.
/shop set currency <currency>
Sets the currency which the shop uses for prices and transactions. You can also set the currency to default to use the default economy currency.
/shop set unlimited <money|stock> <true|false>
Sets the shop to have unlimited money or stock. Great for creating server/admin shops!
/shop balance withdraw <amount>
Transfers amount of currency from the shop's account to yours.
/shop balance deposit <amount>
Transfers amount of currency to shop's account from yours.