Skip to main content

Shop Admin Panel

The Shop Admin Panel is a full in-game UI for managing all shops on your server. It allows you to create, edit, and delete shops and their items without editing JSON files directly.

Accessing the Admin Panel

The Shop Admin Panel is accessible through the KyuubiSoft Admin Panel:

  1. Run /ksadmin in-game (requires kyuubisoft.admin permission).
  2. Select Shop Admin from the module list.

Shop List View

The main view displays all registered shops in a paginated list.

Shop List Columns

ColumnDescription
IDUnique shop identifier (matches the JSON filename)
TitleDisplay title (may be a localization key)
CurrencyCurrency used for purchases
ItemsNumber of items in the shop
DailyDaily rotation size (0 = fixed catalog)
SellWhether selling is enabled

Shop List Actions

ButtonDescription
Add ShopCreate a new shop from scratch
EditOpen the selected shop for editing
DeleteDelete the selected shop (with confirmation dialog)
Open DetailSwitch to the detail view for the selected shop

Shop Detail View

The detail view provides inline editing of all shop properties and items.

Shop Properties

FieldDescription
IDUnique shop identifier. Cannot be changed after creation.
TitleDisplay title. Can be an i18n localization key or plain text.
CurrencyCurrency ID used for purchases (e.g., quest_tokens, item:Ingredient_Bar_Gold).
Daily SizeNumber of items shown per day. 0 = fixed catalog showing all items.
Items/PageItems displayed per page in the shop UI (default: 9 for a 3x3 grid).

Buy/Sell Configuration

The detail view includes a Sell Configuration section:

FieldDescription
BuyToggle whether buying is enabled (ON/OFF).
SellToggle whether selling is enabled (ON/OFF).
Price %Default sell price as a percentage of the buy price (e.g., 50 means items sell for half their buy cost).
Sell CurrencyCurrency used for sell payouts. Leave empty to use the shop's buy currency.
WhitelistComma-separated list of item IDs that can be sold. Leave empty to allow all items.
BlacklistComma-separated list of item IDs that can never be sold.

Item Management

The detail view shows all items in the shop with pagination and search.

Item List Columns

ColumnDescription
Item IDHytale item ID
NameDisplay name
CostPurchase price
SellSell price (0 = calculated from percentage)
QtyQuantity received per purchase
WeightSelection weight for daily rotation
CategoryOptional grouping category
LimitMax purchases per player per day

Item Editor

Click Add Item or select an existing item to open the item editor overlay.

FieldDescription
Item IDHytale item ID (e.g., Food_Bread, Weapon_Sword_Iron).
NameDisplay name (i18n key or plain text).
DescriptionShort description shown in the shop UI.
QuantityHow many items the player receives per purchase.
CostPrice in the shop's currency.
Sell PriceExplicit sell price. 0 uses the percentage fallback.
Max SellsMaximum sells per player per day. 0 = unlimited.
WeightSelection weight for daily rotation (higher = more likely).
Max PurchMaximum purchases per player per day. 0 = unlimited.
CategoryOptional category for filtering.
PermissionPermission required to purchase this item (optional).
CommandCommand to execute instead of granting an item. Supports {player} placeholder.
Run asWhether the command runs as Server (console) or Player.
Command Items

When a Command is set, the shop executes that command instead of granting a physical item. This is useful for giving non-item rewards like XP, currency, or triggering events. The {player} placeholder is replaced with the buyer's username.

Workflow Example

Creating a New Shop

  1. Open /ksadmin and select Shop Admin.
  2. Click Add Shop.
  3. Fill in the shop ID, title, and currency.
  4. Click Save to create the empty shop.
  5. Click Open Detail on your new shop.
  6. Click Add Item to add items to the shop.
  7. Configure each item's price, quantity, and other properties.
  8. Click SAVE SHOP to persist changes to disk.

Enabling Sell Mode

  1. Open a shop's detail view.
  2. In the Sell Configuration section, toggle Sell to ON.
  3. Set the Price % (e.g., 50 for half price).
  4. Optionally configure a whitelist/blacklist for sellable items.
  5. Click SAVE SHOP.

Players can now use /ksshop sell <shopId> or interact with an NPC linked to the shop to sell items.

Deleting a Shop

  1. Select the shop in the shop list.
  2. Click Delete.
  3. Confirm in the dialog that appears.
danger

Deleting a shop removes both the runtime registration and the JSON file on disk. This action cannot be undone.

Saving

All changes made in the admin panel are saved to the shop's JSON file on disk when you click SAVE SHOP. The runtime configuration is also updated immediately, so players see the changes without a server restart or reload.