Skip to content

Configuration (config.yml)

Sky Young edited this page Sep 12, 2024 · 11 revisions

config.yml

  • Economy
    • currency
    • creationCost
    • destructionCost
    • teleportCost
    • teleportCooldown
    • returnCreationCost
    • allowPartialSales
  • Display
    • displayType
    • displayNameTags
    • displayCycle
    • forceDisplayToNoneIfBlocked
    • displayLightLevel
    • setGlowingItemFrame
    • setGlowingSignText
    • priceSuffixes
  • General
    • usePermissions
    • checkUpdates
    • enableGUI
    • commandAlias
    • enabledContainers
    • creationMethod
    • checkItemDurability
    • allowCreativeSelection
    • deletePlayerShopsAfterXHoursOffline
    • playSounds
    • playEffects
    • inverseComboShops
    • itemList
    • worldBlacklist
    • actionMappings
    • destroyShopRequiresSneak
  • Integrations
    • hookWorldGuard
    • hookTowny
    • dynmap-marker
    • bluemap-marker
  • Shop Purchase Database Logging
    • logging

Economy Settings

Currency

currency:
  type: 'ITEM'
  name: 'Emerald(s)'
  format: '[price] [name]'

type

  • ITEM: Shops will use a specified item as the currency (default is Emerald). To change this item in-game, hold the item you want to use as your currency in your hand, then run the command /shop setcurrency
  • VAULT: Shops will use Vault as the currency/economy. This requires Vault to be installed on the server and will integrate with your existing economy plugin.
  • EXPERIENCE: Shops will use experience points as the currency.

name

This is the name of the currency that shows up on signs.

  • If you are using ITEM, you will want to change this to the type of item being used.
  • If you are using VAULT, you will want to change this to a currency symbol like $.
  • If you are using EXPERIENCE, you will want to name this Experience or something similar.

format

This is the order in which prices are displayed. For example, if you are using ITEM with Emeralds as the currency, [price] [name] would show 5 Emerald(s. If you are using VAULT, this would show 5 $, so setting this as [name][price] would show $5.

General Settings

Action Mappings

If you would like to change the way players interact with shops, you can modify the controls by changing the values inside of actionMappings.

actionMappings:
  transactWithShop: 'RIGHT_CLICK_SIGN'
  transactWithShopFullStack: 'SHIFT_RIGHT_CLICK_SIGN'
  viewShopDetails: 'LEFT_CLICK_CHEST'
  cycleShopDisplay: 'SHIFT_RIGHT_CLICK_CHEST'
  • transactWithShop: Buy/Sell an item
  • transactWithShopFullStack: Purchase (or sell) 64 items from the shop (buy/sell a full stack)
  • viewShopDetails: See the details about the shop owner, stock, and more in chat
  • cycleShopDisplay: Cycle the "display" type that appears above the shop

If you would like to disable any of these actions, just set it to NONE and players will be unable to perform that action.

Available Action Types

NONE (disables the action)

LEFT_CLICK_SIGN
SHIFT_LEFT_CLICK_SIGN
RIGHT_CLICK_SIGN
SHIFT_RIGHT_CLICK_SIGN

LEFT_CLICK_CHEST
SHIFT_LEFT_CLICK_CHEST
RIGHT_CLICK_CHEST
SHIFT_RIGHT_CLICK_CHEST
Clone this wiki locally