Sections

You will learn step by step what every option in section configs mean and how to configure/use it.

The file name defines the shop internal name and needs to match the filename for the shop config inside the shops folder

General information about section configurations.

These configs store all the custom data used to create shop sections, and are shown in the Main Menu when you open the /shop GUI. It allows to configure the display item, shop title, slot in the main menu, navigation bar, economy type, the fill item and general settings on how the section behaves inside the shop.

Basic section example
enable: true
slot: 4
title: " &8>>--- &a&lFarming &r&8---<< "
sub-section: false
hidden: false
economy: VAULT
fill-item:
  material: "GRAY_STAINED_GLASS_PANE"
nav-bar:
  mode: DISABLED
item:
  material: WHEAT
  name: '&aClick to enter the farming shop'
  lore: 
  - "0x00CB14Gather your farming supplies here!"

All options you can use and their meanings.

Item options list:

  • item: [Required] - Config section to configure the display item

  • slot: [Required] - is the slot of the item in the main shop. (must be a number from 0 - 44 for the first page. Additional pages not supported yet. Cannot be the same slot as another section item)

  • enable: - Disabled or enables the shop within the plugin

  • title: - The shop title when inside the shop. Do not confuse with the item displayname.

  • hidden: - Whether or not this shop category can be seen and accessed via the main menu

  • sub-section: - Whether this section is considered as a sub section

  • display-item: - Makes the item a displayitem.

  • economy: - Specifies the default economy used for this section

  • fill-item: - Allows to specify a fill item for this section

  • click-mappings: - Allows to set per shop click mappings

  • dynamic-pricing: - Per section dynamic pricing settings *Premium feature

  • click-commands: - A list of commands which run when a player enters/clicks the shop section *Premium feature

  • rotating-shop-settings: - Section to change settings for this rotating shop *Premium feature

Item configuration:

  • material: [Required] - The type(material) of the item

  • name: - The displayname of the item

    • Will also be the title of the shop if no name has been specified.

    • Supports chat colors or custom RGB values

  • lore: - A list of messages displayed on the item

  • enchantments: - The enchantments of the display item

  • potiontypes: - The potion types of the display item

  • armor-trim: - The armor trim of the display item

  • enchantment-glint: - Whether the display item has a enchantment glint effect on it

  • skullowner: - The skull owner of the item

    • Should be a valid player name

  • armorcolor: - A custom RGB color for leather armor

  • stack-size: - The stack size of the item

  • skull-texture: *Premium feature - The custom skull texture of the player head

  • NBTData: *Premium feature - Sets the NBT data of the item on 1.8-1.20.4

  • components: *Premium feature - Sets the NBT data of the item on 1.20.5+

  • CustomModelData: *Premium feature - Sets the CustomModelData of the item

Item slot:

  • The position/slot of the display item inside the main shop GUI

    • When outside the range of the main shop size, the slot will be automatically changed to the first that is available.

  • Slot counts start by 0, the max slot is defined by the main shop size * 9

Enabled:

  • Defines whether this shop should be loaded inside the plugin

  • Disabled shops won't be loaded, which allows them to be re-enabled at any time later

Title:

  • The shops title seperate from the item display name

    • Showed on top of the inventory when browsing the shop contents

  • If not specified, the item's display name will be the title of the shop

    • If no item display name is specified, the shop will get a invalid title.

  • Supports chat colors or custom RGB values

Hidden shop:

  • Whether this shop section can be seen and accessed via the main shop

  • If a section is hidden, it will be only accessible through the direct shop command (/shop <section>)

Sub shops:

  • Whether this shop is a subsection

  • Subsections will be hidden from the main menu and cannot be opened via commands

Display items:

  • Makes this section a simple display item to decorate the main shop GUI

  • Display items won't have a section linked and nothing will happen when a player clicks it inside the main shop GUI, neither will this section be accessible via /shop.

Fill item:

  • A fill item will fill empty spots inside the shop category for this section

Click mappings:

  • Allows specifying custom click actions for different click types on shop items

  • These settings will override the global settings from config.yml

Specific currency:

  • Sets the economy used within this section, all items will be able to be bought/sold using this economy type.

  • This option uses the same format as the default economy specified inside the config.yml

Dynamic-pricing:

  • enabled:

    • Allows to enable or disable dynamic pricing inside this section

    • Note that this only allows to disable DP in this section, you will have to enable global dynamic pricing for this to work.

  • max-stock:

    • The same as the DP max stock setting inside the config.yml, but instead this will strictly define the rate at which prices change when players buy items IN THIS SECTION instead of having a difficulty setting based on the item's price.

    • This is known to be more precise, lower values mean faster price changes compared to higher values.

Click commands:

  • Click commands are triggered upon when the player clicks the section

  • close-menu:

    • When enabled, the shop won't open when clicked.

      • This allows click commands to redirect the player to a different GUI for example.

    • If disabled, the shop will open like normal while the click commands get executed in the background.

Rotating shops:

Rotating shops require the shop-type option to be set to ROTATING

Rotating shops, unlike regular shop category's, have only a limited amount of items displayed each time. Every interval/frequency a new set of random items will be choosen to display.

  • Rotation setting, either interval or frequency:

    • The interval option allows to specify a custom interval for when the next rotation with different items will be displayed

      • Interval periods are formatted using

        • d - Specifies the days

        • h - Specifies the hours

        • m - Specifies the minutes

        • s - Specifies the seconds

        • Example of a 12 hours, 30 minutes and 15 seconds interval: 12h 30m 15s

    • The frequency option allows to use a custom cron schedule for when the next items will be displayed at a fixed interval

      • Frequency's are specified using a cron schedule

        • See more info here on using the build in cron schedulers system

      • Some examples include:

        • Every 30 minutes: frequency: 0 0/30 * * * ?

        • Every day at 12AM midnight: frequency: 0 0 24 * * ?

  • The can-repeat option sets whether or not items have a random chance to display

    • If disabled, items cannot be repeated across all intervals of this shop

      • The amount of rotations is determined by how many available items there are in this shop, divided by the amount of display slots. Example for a shop with 24 items and 3 display slots: 24/3=8 rotations before items can repeat again

    • When enabled, allows items to be randomly displayed(per item chances can be set using the display-chance item option).

      • Items can also only be displayed once per rotation, instead of once for all rotations

  • The broadcast option sets whether to announce a global message into chat when a new rotation of items gets loaded

  • The gui-rows option, similar to the option inside the shop config files allows a per page size to be set

  • The display-slots option creates display slots for this shop page

    • For example if a rotating shop has 3 display slots in total, but 24 randomly configured items. Every X interval a new set of 3 random items is displayed.

Complete example section config (Including premium item options)

Last updated

Was this helpful?