Convert the functions to async functions that return Promise<0|1>.

Constructors

Properties

buyShop: boolean

Whether or not players can buy items in this shop.

id: `shop:${string}`

The id of the server shop.

mainBuyPageBodyText?: string

The body text that is displayed on the main buy page of the server shop.

mainPageBodyText?: string

The body text that is displayed on the main page of the server shop.

mainSellPageBodyText?: string

The body text that is displayed on the main sell page of the server shop.

name?: string

The display name of the server shop. This is displayed on the button for the server shop in the manage server shops menu.

publicShop: boolean

Whether or not this shop can be accessed by any player through the use of the \viewservershops command.

sellShop: boolean

Whether or not players can sell items in this shop.

title?: string

The title of the server shop. This is the title displayed at the top of the UI for the server shop.

Accessors

Methods

  • Opens the shop UI for the specified player.

    Parameters

    • player: Player

      The player to open the shop UI for.

    • mode: "both" | "none" | "buy" | "sell" = ...

      The mode to open this shop in.

    • showBackButton: boolean = true

    Returns Promise<0 | 1>

    A promise that will resolve with either a 0 or a 1, a 0 meaning that the previous UI should not be re-opened, and a 1 meaning that it should.

  • Opens the shop UI for the specified player.

    Type Parameters

    • mode extends "buy" | "sell"

    Parameters

    Returns Promise<0 | 1>

    A promise that will resolve with either a 0 or a 1, a 0 meaning that the previous UI should not be re-opened, and a 1 meaning that it should.

  • Returns void

  • Parameters

    Returns Promise<0 | 1>

    Make return type be Promise<0|1>.

    Copy over the menu for the item information from the player shop system.

    Copy over the updated code from the player shop system.

  • Parameters

    • shopID: string

    Returns ServerShop

  • Returns string[]