### Complete item configuration example Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md A comprehensive example showing the structure of an item including display, buying, selling, and buy-effects. ```yaml # === Display: the icon and name in the menu === - id: enchanted_diamond # Internal ID, used in commands and placeholders, never shown to players. item: ecoitems:enchanted_diamond # The item bought or sold; uses Item Lookup System syntax. name: "&bEnchanted Diamond" # Optional; overrides the icon's name in the menu. gui: row: 3 # Row in the menu (1-6). column: 4 # Column in the menu (1-9). page: 1 # Page the icon sits on. # === Buying: price and limits to purchase === buy: type: coins # Currency type; see the prices system. value: 500 # Price; can be a plain number or an expression. display: "$%value%" # How the price renders in the menu. amount: 8 # Optional; default buy amount, defaults to 1. max-at-once: 16 # Optional; cap per purchase, removes the multi-buy GUI. limit: 10 # Optional; max times each player can buy, defaults to unlimited. global-limit: 100000 # Optional; max buys across all players, defaults to unlimited. alt-buy: # Optional second currency the player can choose instead. type: crystals value: 65 display: "&b%value% ❖" # === Selling: price and limits to sell back === sell: type: coins value: 100 display: "$%value%" limit: 256 # Optional; max times each player can sell. # === Effects and conditions: extra behaviour === buy-effects: # Optional; run on purchase, with or without a physical item. - id: run_command args: command: "lp user %player% parent set iron" ``` -------------------------------- ### Example coefficient calculation Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/dynamic-pricing.md Calculation example to reach a 1.5x price increase at 1000 net buys. ```text coefficient = 0.5 / ln(1001), i.e. about 0.0724 ``` -------------------------------- ### Complete category configuration example Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-category.md A full example demonstrating all four parts of a category configuration in a single YAML file. ```yaml # === Category info: icon, lore, access === item: diamond_sword name:"&fExample Category" # The icon shown for this category in a shop. lore: # Lore lines on that icon. - "&aBuy all the best gear here!" permission: ecoshop.category.permission1 # Optional; permission required to open the category. # === Dynamic pricing: demand-based prices === dynamic-pricing: enabled: false # Off by default; see the Dynamic Pricing page for the full system. max-increase: 1.5 # Cap prices at 150% of base. max-decrease: 0.5 # Floor prices at 50% of base. buy: enabled: true formula: "%base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0)))" # === GUI: the category menu === gui: rows: 6 # Height of the menu (1-6). title: "Demo Category" # The menu title. forwards-arrow: item: arrow name:"&fNext Page" row: 6 column: 6 backwards-arrow: item: arrow name:"&fPrevious Page" row: 6 column: 4 pages: - page: 1 mask: # Decorative background. items: - gray_stained_glass_pane - black_stained_glass_pane pattern: # 0 empty, 1 first mask item, 2 second mask item. - "222222222" - "211111112" - "211111112" - "211111112" - "211111112" - "222222222" custom-slots: [ ] # Extra decorative or command slots. # === Items: what players buy and sell === items: [] # Each entry is a shop item; see How to make an Item. ``` -------------------------------- ### Complete shop configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-shop.md A full example demonstrating all four parts of a shop: info, navigation, broadcasts/sounds, and category layout. ```yaml # === Shop info: name and command === title: Demo Shop # The GUI title shown at the top of the shop. command: demoshop # The command players run to open this shop. # === Navigation: page arrows === forwards-arrow: # Shown on every page except the last. item: arrow name:"&fNext Page" # Item syntax comes from the Item Lookup System. row: 6 column: 6 backwards-arrow: # Shown on every page except the first. item: arrow name:"&fPrevious Page" row: 6 column: 4 # === Broadcasts and sounds: feedback on actions === buy-broadcasts: # Announce purchases to the whole server; good for /buy menus. enabled: true message: "&b%player%&f bought &r%item%&f!" # Supports %player%, %item%, and %amount%. sound: enabled: true sound: ui_toast_challenge_complete pitch: 1.5 volume: 2 category: players click-sound: # Played when a player clicks any icon in this shop. enabled: true sound: block_stone_button_click_on pitch: 1 volume: 1 category: UI buy-sound: # Played on a successful purchase. enabled: true sound: entity_player_levelup pitch: 2 volume: 1 category: players sell-sound: # Played on a successful sale. enabled: true sound: block_amethyst_block_place pitch: 1.5 volume: 1 category: players # === Categories: what the shop contains === rows: 3 # Height of the category-picker GUI (1-6). pages: # Add as many pages as you want. - page: 1 mask: # Decorative filler behind the categories. items: - gray_stained_glass_pane - black_stained_glass_pane pattern: # 0 empty, 1 first mask item, 2 second mask item. - "222222222" - "211111112" - "211000112" - "211000112" - "211111112" - "222222222" categories: # Where each category icon sits in the GUI. - id: example row: 3 column: 3 - id: example_2 row: 4 column: 6 custom-slots: [ ] # Extra decorative or command slots. ``` -------------------------------- ### Configure dynamic-pricing block for an item Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/dynamic-pricing.md Example of overriding buy and sell pricing for a diamond item. The buy price uses a dynamic formula with limits, while the sell price is explicitly disabled. ```yaml - id: diamond item: diamond gui: row: 3 column: 5 page: 1 buy: value: 100 type: coins display: "$%value%" dynamic-pricing: # Override the buy price for this item only. enabled: true max-increase: 3.0 # This item's buy price can reach 300% of base. max-decrease: 0.5 formula: "%base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0)))" sell: value: 50 type: coins display: "$%value%" dynamic-pricing: enabled: false # This item's sell price stays fixed. ``` -------------------------------- ### Buying configuration with math expressions Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Sets the price using math expressions that support placeholders and arithmetic. ```yaml buy: type: coins # Currency; see the prices system. value: 500 - (%player_rank% * 25) # Price; expressions are allowed. display: "$%value%" # How the price renders in the menu. ``` -------------------------------- ### Buy amount configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Sets the default or quick-buy amount per purchase. ```yaml buy: amount: 8 ``` -------------------------------- ### Direct category configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-shop.md Configures a shop to open a specific category immediately without displaying a picker. ```yaml direct-category: example_category # Opens this category immediately, with no picker. ``` -------------------------------- ### Shop info configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-shop.md The required fields for defining the shop's GUI title and the command used to open it. ```yaml title: Demo Shop # The GUI title shown at the top of the shop. command: demoshop # The command players run to open this shop. ``` -------------------------------- ### Max-at-once configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Caps the quantity per purchase and disables the multi-buy GUI. ```yaml buy: max-at-once: 16 ``` -------------------------------- ### GUI layout configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-category.md Defines the menu size, title, and navigation arrows. You can add multiple pages by appending to the pages list. ```yaml gui: rows: 6 # Height of the menu (1-6). title: "Demo Category" # The menu title. forwards-arrow: # Hidden on the last page. item: arrow name:"&fNext Page" row: 6 column: 6 backwards-arrow: # Hidden on the first page. item: arrow name:"&fPrevious Page" row: 6 column: 4 pages: - page: 1 custom-slots: [ ] # Add as many pages as you want by appending to this list. ``` -------------------------------- ### Broadcasts and sounds configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-shop.md Configures server-wide purchase announcements and local sound feedback for player actions. ```yaml buy-broadcasts: enabled: true # Announce every purchase in this shop to the server. message: "&b%player%&f bought &r%item%&f!" # Supports %player%, %item%, and %amount%. sound: # A sound played alongside the broadcast. enabled: true sound: ui_toast_challenge_complete pitch: 1.5 volume: 2 category: players click-sound: # Played when an icon is clicked. enabled: true sound: block_stone_button_click_on pitch: 1 volume: 1 category: UI ``` -------------------------------- ### Alt-buy configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Defines an alternative currency for purchasing an item. ```yaml alt-buy: type: crystals value: 65 display: "&b%value% ❖" ``` -------------------------------- ### Items list configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-category.md Defines the items available for purchase or sale within the category, including their GUI position. ```yaml items: - id: cooked_mutton # See How to make an Item for the full item format. item: cooked_mutton buy: type: coins value: 20 display: "$%value%" gui: row: 1 column: 4 page: 1 ``` -------------------------------- ### Dynamic pricing decay configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/dynamic-pricing.md YAML configuration for enabling and tuning price decay to drift prices back to base levels during periods of low activity. ```yaml dynamic-pricing: enabled: true decay: enabled: true # Off by default. rate: 0.1 # Fraction of both counters removed each period (0.1 = 10%). period: 1440 # Period length in minutes (1440 = 24 hours). ``` -------------------------------- ### Default config.yml sell-more configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/plugin-config.md Defines the secondary menu for selecting stack quantities to sell, including the button layout and back navigation. ```yaml sell-more: rows: 2 # Height of the menu (1-6). title: "Selling more %item%" # Menu title. mask: # Decorative background. items: - black_stained_glass_pane pattern: # 0 empty, 1 first mask item. - "000000000" - "111101111" item-name: "&fSell &a%stacks%&f stacks" # Name template for each amount button. amounts: # One button per stack count. - stacks: 1 # Sell 1 stack. row: 1 column: 1 - stacks: 2 # Sell 2 stacks. row: 1 column: 2 - stacks: 3 # Sell 3 stacks. row: 1 column: 3 - stacks: 4 # Sell 4 stacks. row: 1 column: 4 - stacks: 5 # Sell 5 stacks. row: 1 column: 5 - stacks: 6 # Sell 6 stacks. row: 1 column: 6 - stacks: 7 # Sell 7 stacks. row: 1 column: 7 - stacks: 8 # Sell 8 stacks. row: 1 column: 8 - stacks: 9 # Sell 9 stacks. row: 1 column: 9 back: # Button back to the sell menu. row: 2 column: 5 item: arrow 1 name:"&cGo Back" custom-slots: [ ] # Extra decorative or command slots. ``` -------------------------------- ### EcoShop PlaceholderAPI Reference Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/placeholderapi.md A comprehensive list of available placeholders for retrieving item pricing, purchase/sell limits, and shop rotation status. ```APIDOC ## Placeholder Format `%ecoshop___%` ### Buy Pricing Placeholders - `%ecoshop___buy_base%` - The base buy price value - `%ecoshop___buy_base_display%` - The base buy price, formatted for display - `%ecoshop___buy_price%` - The effective buy price (base with multipliers) - `%ecoshop___buy_price_display%` - The effective buy price, formatted for display - `%ecoshop___alt_buy_base%` - The base alt-buy price value - `%ecoshop___alt_buy_base_display%` - The base alt-buy price, formatted for display - `%ecoshop___alt_buy_price%` - The effective alt-buy price (base with multipliers) - `%ecoshop___alt_buy_price_display%` - The effective alt-buy price, formatted for display ### Buy Limits Placeholders - `%ecoshop___buy_limit%` - The per-player buy limit (-1 if unlimited) - `%ecoshop___buy_global_limit%` - The global buy limit (-1 if unlimited) - `%ecoshop___buy_amount%` - The amount the player has bought - `%ecoshop___buy_global_amount%` - The total amount bought globally - `%ecoshop___buy_remaining%` - The amount the player can still buy - `%ecoshop___buy_global_remaining%` - The amount remaining in the global limit (-1 if unlimited) ### Sell Pricing Placeholders - `%ecoshop___sell_base%` - The base sell price value - `%ecoshop___sell_base_display%` - The base sell price, formatted for display - `%ecoshop___sell_price%` - The effective sell price (base with multipliers) - `%ecoshop___sell_price_display%` - The effective sell price, formatted for display ### Sell Limits Placeholders - `%ecoshop___sell_limit%` - The per-player sell limit (-1 if unlimited) - `%ecoshop___sell_global_limit%` - The global sell limit (-1 if unlimited) - `%ecoshop___sell_amount%` - The amount the player has sold - `%ecoshop___sell_global_amount%` - The total amount sold globally - `%ecoshop___sell_remaining%` - The amount the player can still sell - `%ecoshop___sell_global_remaining%` - The amount remaining in the global sell limit (-1 if unlimited) ### Rotation Placeholders - `%ecoshop_rotation_%` - Countdown to that category's next rotation ``` -------------------------------- ### Require configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Defines a math expression that must evaluate to true for the purchase to be allowed. ```yaml buy: require: "%player_level% >= 10" ``` -------------------------------- ### Configure rotation settings Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Enables an item to appear in rotating shop slots with specific weight and display behavior. ```yaml rotation: enabled: true # Make this item eligible for rotation. Defaults to false. weight: 10 # (Optional) Relative chance of being drawn against other weighted items. Defaults to 1. always-show: false # (Optional) Fill a slot every rotation instead of competing in the weighted draw. ``` -------------------------------- ### Default config.yml sell-gui configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/plugin-config.md Configures the mass-sell GUI triggered by the /sell command, where players drop items into a specific slot to be sold upon closing the menu. ```yaml # The mass-sell GUI opened by /sell. sell-gui: rows: 6 # Height of the menu (1-6). title: Sell Items # Menu title. custom-slots: # The drop slot players fill with items to sell. - row: 6 column: 9 item: paper 1 unbreaking:1 hide_enchants name:"&aDrop items in here to sell them!" lore: # Everything dropped in is sold when the menu closes. - "&fWhen you close this menu, all" - "&fitems inside it will be sold!" ``` -------------------------------- ### Default config.yml configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/plugin-config.md The default configuration file defining storage, logging, and menu structures for EcoShop. ```yaml # Even if eco is set up to use a database, this forces EcoShop to save to # local storage, disabling cross-server sync. use-local-storage: false logging: enabled: true # Whether to log every shop buy/sell transaction to logs/shop/*.log. max-history-days: 30 # How many days of log files /ecoshop history will search back through. shop-items: register-permissions: false # Show shop permissions in permission plugins; slows reloads, so off by default. sell-strict-match: true # Sold items must match the shop item exactly (name, lore, enchants); false matches only material. global-bottom-lore: # Lore shown on every shop icon, off by default. buy: [ ] # Shown under buyable items, e.g. "&e&oLeft Click to buy". sell: [ ] # Shown under sellable items, e.g. "&e&oRight Click to sell". always: [ ] # Shown under every item. buy-menu: rows: 6 # Height of the menu (1-6). title: "Buying %item%" # Menu title; %item% is the item being bought. mask: # Decorative background. items: # Mask materials, referenced by the pattern below. - black_stained_glass_pane - gray_stained_glass_pane pattern: # 0 empty, 1 first mask item, 2 second mask item. - "111111111" - "122202221" - "122222221" - "122222221" - "122020221" - "111101111" item: # Where the item being bought is shown. row: 2 column: 5 buy-more: # Button to open the buy-more menu. row: 6 column: 5 item: emerald 64 unbreaking:1 hide_enchants name:"&aBuy More" cancel: # Button to close without buying. row: 5 column: 4 item: barrier name:"&cCancel" confirm: # Button to confirm the purchase. row: 5 column: 6 item: diamond unbreaking:1 hide_enchants name:"&aConfirm" add-buttons: # Buttons that change the amount by a fixed step. - add: 1 # +1 button. row: 4 column: 6 item: lime_concrete 1 name:"&a+1" - add: 10 # +10 button. row: 4 column: 7 item: lime_concrete 10 name:"&a+10" - add: -1 # -1 button. row: 4 column: 4 item: red_concrete 1 name:"&c-1" - add: -10 # -10 button. row: 4 column: 3 item: red_concrete 10 name:"&c-10" set-buttons: # Buttons that set the amount to a fixed value. - set: 1 # Set to one. row: 4 column: 2 item: red_concrete 1 name:"&cSet to one" - set: 64 # Set to a full stack. row: 4 column: 8 item: lime_concrete 64 name:"&aSet to full stack" custom-slots: [ ] # Extra decorative or command slots. buy-more: rows: 2 # Height of the menu (1-6). title: "Buying more %item%" # Menu title. mask: # Decorative background. items: - black_stained_glass_pane pattern: # 0 empty, 1 first mask item. - "000000000" - "111101111" item-name: "&fBuy &a%stacks%&f stacks" # Name template for each amount button; %stacks% is the stack count. amounts: # One button per stack count. - stacks: 1 # Buy 1 stack. row: 1 column: 1 - stacks: 2 # Buy 2 stacks. row: 1 column: 2 - stacks: 3 # Buy 3 stacks. row: 1 column: 3 - stacks: 4 # Buy 4 stacks. row: 1 column: 4 - stacks: 5 # Buy 5 stacks. row: 1 column: 5 - stacks: 6 # Buy 6 stacks. row: 1 column: 6 - stacks: 7 # Buy 7 stacks. row: 1 column: 7 - stacks: 8 # Buy 8 stacks. row: 1 column: 8 - stacks: 9 # Buy 9 stacks. row: 1 column: 9 back: # Button back to the buy menu. row: 2 column: 5 item: arrow 1 name:"&cGo Back" custom-slots: [ ] # Extra decorative or command slots. ``` -------------------------------- ### Paged category configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-shop.md Sets up a paged category picker for shops containing multiple categories. ```yaml rows: 3 pages: - page: 1 categories: # Place each category icon in the picker. - id: example row: 3 column: 3 - id: example_2 row: 4 column: 6 ``` -------------------------------- ### Conditions configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Specifies Eco conditions that must be met to allow the purchase. ```yaml buy: conditions: - id: has_permission args: permission: group.iron ``` -------------------------------- ### Dynamic-pricing configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Enables demand-based pricing for an item, overriding category defaults. ```yaml buy: dynamic-pricing: enabled: true max-increase: 3.0 max-decrease: 0.5 ``` -------------------------------- ### Configure effects and conditions Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Defines an item that triggers effects upon purchase or sale, including GUI display settings and purchase conditions. ```yaml - id: iron_rank buy-effects: # Run when bought; here, grant a rank. - id: run_command args: command: "lp user %player% parent set iron" sell-effects: # Optional; run when the item is sold. - id: broadcast args: message: "&f%player% sold %item% for &b%value%❖&f!" gui: display: # Required for effect-only items, since there is no item icon. item: diamond_chestplate name:"&fIron Rank" lore: - "&fGrants the Iron rank." row: 3 column: 6 page: 2 buy: type: crystals value: 65 display: "&b%value% Crystals ❖" conditions: # Must pass for the player to buy. - id: has_permission args: permission: group.iron inverse: true ``` -------------------------------- ### Configure sell block Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Defines the basic selling parameters for an item, including currency type, value calculation, and display format. ```yaml sell: type: coins value: 100 + (%player_rank% * 25) display: "$%value%" ``` -------------------------------- ### Category info configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-category.md Defines the icon, lore, and access permissions for the category. If the permission field is omitted, the category is open to everyone. ```yaml item: diamond_sword name:"&fExample Category" # The icon shown for this category in a shop. lore: # Lore lines on that icon. - "&aBuy all the best gear here!" permission: ecoshop.category.permission1 # Optional; without it the category is open to everyone. ``` -------------------------------- ### Limit configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Sets the maximum number of times an individual player can buy the item. ```yaml buy: limit: 1 ``` -------------------------------- ### Default config.yml sell-menu configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/plugin-config.md Defines the layout and functionality of the primary sell menu, including decorative masks, item placement, and buttons for confirming, canceling, or adjusting sale quantities. ```yaml sell-menu: rows: 6 # Height of the menu (1-6). title: "Selling %item%" # Menu title; %item% is the item being sold. mask: # Decorative background. items: - black_stained_glass_pane - gray_stained_glass_pane pattern: # 0 empty, 1 first mask item, 2 second mask item. - "111111111" - "122202221" - "122222221" - "122222221" - "122020221" - "111101111" item: # Where the item being sold is shown. row: 2 column: 5 sell-more: # Button to open the sell-more menu. row: 6 column: 5 item: emerald 64 unbreaking:1 hide_enchants name:"&aSell More" cancel: # Button to close without selling. row: 5 column: 4 item: barrier name:"&cCancel" confirm: # Button to confirm the sale. row: 5 column: 6 item: diamond unbreaking:1 hide_enchants name:"&aConfirm" sell-all-button: # Button that sells every matching item the player holds. enabled: true item: hopper name:"&aSell All" lore: # %amount% and %price% are filled per player. - "&7Sell every matching item you have" - "&7Amount: &e%amount%" - "&7Price: &e%price%" row: 3 column: 5 add-buttons: # Buttons that change the amount by a fixed step. - add: 1 # +1 button. row: 4 column: 6 item: red_concrete 1 name:"&c+1" - add: 10 # +10 button. row: 4 column: 7 item: red_concrete 10 name:"&c+10" - add: -1 # -1 button. row: 4 column: 4 item: lime_concrete 1 name:"&a-1" - add: -10 # -10 button. row: 4 column: 3 item: lime_concrete 10 name:"&a-10" set-buttons: # Buttons that set the amount to a fixed value. - set: 1 # Set to one. row: 4 column: 2 item: lime_concrete 1 name:"&aSet to one" - set: 64 # Set to a full stack. row: 4 column: 8 item: red_concrete 64 name:"&cSet to full stack" custom-slots: [ ] # Extra decorative or command slots. ``` -------------------------------- ### Display configuration with icon override Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Configures the item display, including name overrides and custom icons shown in the menu without changing the actual item received. ```yaml - id: cooked_mutton item: cooked_mutton # What the player actually gets. name: "&6&lMutton Chop" # Optional; overrides only the menu name. gui: row: 1 column: 4 page: 1 show-quick-buy-sell: false # Optional; hides the default quick buy/sell lore. display: # Optional; change the shown icon without changing the purchased item. item: diamond name:"&bSpecial Diamond" lore: - "&7A very special diamond!" bottom-lore: # Lore under the price, rendered per player, so placeholders work. - "&7You have bought &e%playerbuys%&7 of these!" ``` -------------------------------- ### Configure Category Dynamic Pricing Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/dynamic-pricing.md Defines the base dynamic pricing configuration for a category, including the master switch, price caps, and formulas for buy, alt-buy, and sell operations. ```yaml dynamic-pricing: enabled: false # Master switch for the whole category. max-increase: 1.5 # Ceiling, as a multiple of base price (1.5 = 150%). max-decrease: 0.5 # Floor, as a multiple of base price (0.5 = 50%). buy: enabled: true # Apply dynamic pricing to the buy price. formula: "%base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0)))" alt-buy: enabled: true formula: "%base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0)))" sell: enabled: true formula: "%base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0)))" ``` -------------------------------- ### Override Category Dynamic Pricing Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/dynamic-pricing.md Demonstrates how to override category-wide dynamic pricing settings for specific price types, such as setting a higher max-increase for buy prices or disabling dynamic pricing for sell prices. ```yaml dynamic-pricing: enabled: true max-increase: 1.5 max-decrease: 0.5 buy: max-increase: 2.0 # The buy price may climb higher than other prices. formula: "%base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0)))" sell: enabled: false # No dynamic pricing on the sell price in this category. ``` -------------------------------- ### Dynamic pricing configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-category.md Configures demand-based pricing for items within the category. This is an optional block that allows prices to fluctuate based on server-wide demand. ```yaml dynamic-pricing: enabled: false # Turn the whole system on or off for this category. max-increase: 1.5 # Highest a price may reach, as a multiple of base (1.5 = 150%). max-decrease: 0.5 # Lowest a price may reach, as a multiple of base (0.5 = 50%). buy: enabled: true # Apply dynamic pricing to the buy price. formula: "%base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0)))" ``` -------------------------------- ### Global-limit configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Sets the maximum number of times all players combined can buy the item. ```yaml buy: global-limit: 1 ``` -------------------------------- ### Configure rotation countdown messages Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Define the countdown format in the top level of lang.yml. These keys control the display when using PlaceholderAPI. ```yaml rotation-countdown: "%hours%h %minutes%m %seconds%s" rotation-ready: "Rotating soon..." ``` -------------------------------- ### Configure dynamic pricing Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Overrides category-level sell pricing for a specific item. ```yaml sell: dynamic-pricing: enabled: false ``` -------------------------------- ### Navigation arrows configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-a-shop.md Defines the forward and backward arrows for moving between shop pages. These automatically hide when there are no pages to navigate to. ```yaml forwards-arrow: # Hidden on the last page. item: arrow name:"&fNext Page" row: 6 column: 6 backwards-arrow: # Hidden on the first page. item: arrow name:"&fPrevious Page" row: 6 column: 4 ``` -------------------------------- ### Enable rotation in category configuration Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Add the rotation block to your category file to enable the feature. You must choose between interval-based rotation or a fixed server-time. ```yaml rotation: enabled: true reset-limits: false # (Optional) Reset online players' buy/sell limits for rotating items on every rotation. broadcast-message: true # (Optional) Tell every online player when this category rotates. Defaults to true. rotation-time: interval: 1h # Rotate every 1h. Accepts s/m/h/d. # server-time: "04:00" # Rotate daily at this server-local time instead. Mutually exclusive with interval. ``` -------------------------------- ### Force a rotation command Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Use this command to immediately re-roll rotation slots and reset the timer for a specific category. Requires the ecoshop.command.rotate permission. ```text /ecoshop rotate ``` -------------------------------- ### Configure sell conditions Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Defines Eco conditions that must be met for a sale to be permitted. ```yaml sell: conditions: - id: below_y args: y: 100 ``` -------------------------------- ### Add countdown to item lore Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Include the rotation countdown placeholder directly in an item's lore configuration within the shop file. ```yaml item: diamond_sword name:"&fRotating Gear" lore: - "&aBuy all the best gear here!" - "&7Next rotation: &f%ecoshop_rotation_rotating_gear%" ``` -------------------------------- ### Configure global sell limit Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Sets the maximum number of times all players combined can sell the item. ```yaml sell: global-limit: 100000 ``` -------------------------------- ### Configure a weighted rotating item Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Add a rotation block with enabled and weight properties to an item within the category items list. Higher weight values increase the likelihood of the item being drawn. ```yaml items: - id: rotation_diamond item: diamond rotation: enabled: true weight: 10 # Higher weight = more likely to be drawn relative to other weighted items. buy: value: 100 type: coins display: "$%value%" ``` -------------------------------- ### Configure sell limit Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/how-to-make-an-item.md Sets the maximum number of times an individual player can sell the item. ```yaml sell: limit: 256 ``` -------------------------------- ### Define rotation slots in GUI pattern Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Use the character 'r' in your mask pattern to designate slots that will be filled by rotating items. ```yaml gui: pages: - page: 1 mask: items: - gray_stained_glass_pane pattern: - "222222222" - "2rrrrrrr2" # 7 rotation slots on this row. - "222222222" ``` -------------------------------- ### Configure an always-show rotating item Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Set always-show to true within the rotation block to ensure the item fills a slot on every rotation instead of competing in the weighted draw. ```yaml rotation: enabled: true always-show: true ``` -------------------------------- ### Configure a fixed-slot rotating item Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Assign a gui position that lands on an r cell to reserve that specific slot for the item. Fixed-slot items are prioritized over always-show and weighted items. ```yaml - id: rotation_gold_ingot item: gold_ingot rotation: enabled: true gui: row: 2 column: 5 page: 1 ``` -------------------------------- ### Default dynamic pricing formula Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/dynamic-pricing.md The default formula used to calculate item prices based on base price and net transaction volume. ```text %base_price% * (1 + 0.0781 * log(1 + max(%buys% - %sells%, 0)) - 0.0781 * log(1 + max(%sells% - %buys%, 0))) ``` -------------------------------- ### Configure rotation broadcast message Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/rotating-shops.md Define the message sent to players when a category rotates in your lang.yml file. ```yaml rotated: "&fThe &r%category%&f shop has rotated its stock!" ``` -------------------------------- ### Coefficient calculation formula Source: https://github.com/auxilor/ecoshop/blob/master/ecohub/ecoshop/dynamic-pricing.md Formula to determine the sensitivity coefficient based on desired maximum price increase and target transaction count. ```text coefficient = (max-increase - 1) / ln(1 + target_transactions) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.