Shop System

This document details the configuration settings for the shop system.

Broadcast Settings

Auto Broadcast Shop

Field
Value

Type

Boolean

Description

Enables/disables automatic broadcasting of shop information

Default

false

Valid Values

true/false

Broadcast Interval in Seconds

Field
Value

Type

Integer

Description

Time interval between shop broadcasts when Auto Broadcast is enabled

Default

60

Unit

Seconds

Minimum

1

Shop Region Settings

Protected by Region

Field
Value

Type

Boolean

Description

Enable/disable the use of the /shop command outside the region

Default

false

Valid Values

true/false

Shop Region

Field
Value

Type

String

Description

Specifies the region where the shop is located. Only players within this region can use the shop commands

Default

"ShopRegion"

Example

"ShopRegion", "Shop"

Shop Items

Shop Items Configuration

Field
Value

Type

Object

Description

Defines items available in the shop and their prices

Format

Key-value pairs where key is the item ID and value is the buy & sell price

Item Format

"Shop Items": {
    "itemID": {
        "Buy Price": number,
        "Sell Price": number
    }
}
  • itemID: String or number representing the unique identifier for the item

  • Buy Price: Number representing the cost of the item in the configured currency

  • Sell Price: Number representing the price at which the item can be sold back to the shop

Example Configuration

Shop.json
{
  "Auto Broadcast Shop": false,
  "Broadcast Interval in Seconds": 60,
  "Protected by Region": false,
  "Shop Region": "ShopRegion",
  "Shop Items": {
    "4444": {
      "Buy Price": 1000,
      "Sell Price": 900
    },
    "1": {
      "Buy Price": 2,
      "Sell Price": 1
    }
  }
}

Usage Notes

  • Shop broadcasts will only occur if Auto Broadcast Shop is set to true

  • Broadcast interval should be set considering server performance and player experience

  • Item IDs must be unique within the shop

  • Prices must be positive numbers

Last updated