Shop System
This document details the configuration settings for the shop system.
Broadcast Settings
Auto Broadcast Shop
Type
Boolean
Description
Enables/disables automatic broadcasting of shop information
Default
false
Valid Values
true/false
Broadcast Interval in Seconds
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
Type
Boolean
Description
Enable/disable the use of the /shop command outside the region
Default
false
Valid Values
true/false
Shop Region
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
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 itemBuy Price
: Number representing the cost of the item in the configured currencySell Price
: Number representing the price at which the item can be sold back to the shop
Example Configuration
{
"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 trueBroadcast 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