Whether or not players can buy items in this shop.
The id of the player shop.
Optional
mainThe body text that is displayed on the main buy page of the server shop.
Optional
mainThe body text that is displayed on the main page of the player shop.
Optional
mainThe body text that is displayed on the main sell page of the server shop.
Optional
nameThe display name of the player shop. This is displayed on the button for the player shop in the manage player shops menu.
The ID of the player who owns this player shop.
Optional
playerThe name of the player who owns this player shop.
Whether or not this shop can be accessed by any player through the use of the \viewplayershops command.
Whether or not players can sell items in this shop.
Optional
titleThe title of the player shop. This is the title displayed at the top of the UI for the player shop.
Static
getStatic
getStatic
getStatic
getStatic
getStatic
openOpens the public shops selector interface for the player.
The player viewing the menu, can be an Entity
, executeCommandPlayerW
, or Player
.
Optional
showBackButton: boolean = falseOptional boolean to indicate if a back button should be displayed.
A promise that resolves to 0
or 1
depending on the user's interaction:
0
: Indicates that the previous menu should be closed.1
: Indicates that the previous menu should be re-opened.The function performs the following actions:
ActionFormData
form with options for public player shops.manageMyShops
: Opens the manage player shops interface.manageAllShops
: Opens the manage all shops interface (admin only).playerShopSystemSettings
: Opens the player shop system settings interface (admin only).back
: Returns 1
.close
: Returns 0
.refresh
: Refreshes the public shops selector interface.shop
: Opens the selected shop interface.
See
ServerShop