boltzz0

can you fix my shops INVENTORY GUI+ config for my shops category and if you need i can send the config to the shopgui+ and in the blocks shop i want you to include all the blocks in that shop and make the whole 2nd row be the blocks only and then 3rd row contains the back, next, previous buttons and make the quantity of blocks 1 and make them have a minimum of 150$ per block and 400$ maximum per block?

📎 1 file 4,096 chars
📄
blocks.yml
yml 210 lines
▶
Blocks:
  name: "ѕʜᴏᴘ - ʙʟᴏᴄᴋѕ"
  size: 27
  fillItem:
    material: AIR
    name: " "
  buttons:
    goBack:
      slot: 18
    previousPage:
      slot: 18
      page: none  # No previous page for the first page
    nextPage:
      slot: 26
      page: blocks_page_2  # Links to the second page
  items:
    1:
      type: item
      item:
        material: OAK_LOG
        name: '#04a4fcOak Log'
        quantity: 1
      buyPrice: 200
      slot: 10
    2:
      type: item
      item:
        material: SPRUCE_LOG
        name: '#04a4fcSpruce Log'
        quantity: 1
      buyPrice: 200
      slot: 11
    3:
      type: item
      item:
        material: BIRCH_LOG
        name: '#04a4fcBirch Log'
        quantity: 1
      buyPrice: 200
      slot: 12
    4:
      type: item
      item:
        material: JUNGLE_LOG
        name: '#04a4fcJungle Log'
        quantity: 1
      buyPrice: 200
      slot: 13
    5:
      type: item
      item:
        material: ACACIA_LOG
        name: '#04a4fcAcacia Log'
        quantity: 1
      buyPrice: 200
      slot: 14
    6:
      type: item
      item:
        material: DARK_OAK_LOG
        name: '#04a4fcDark Oak Log'
        quantity: 1
      buyPrice: 200
      slot: 15
    7:
      type: item
      item:
        material: MANGROVE_LOG
        name: '#04a4fcMangrove Log'
        quantity: 1
      buyPrice: 250
      slot: 16

blocks_page_2:
  name: "ѕʜᴏᴘ - ʙʟᴏᴄᴋѕ (ᴘᴀɢᴇ 2)"
  size: 27
  fillItem:
    material: GRAY_STAINED_GLASS_PANE
    name: " "
  buttons:
    goBack:
      slot: 18
    previousPage:
      slot: 0
      page: blocks_page_1  # Links back to the first page
    nextPage:
      slot: 5
      page: blocks_page_3  # Links to the third page
  items:
    1:
      type: item
      item:
        material: CRIMSON_STEM
        name: '#04a4fcCrimson Stem'
        quantity: 1
      buyPrice: 300
      slot: 10
    2:
      type: item
      item:
        material: WARPED_STEM
        name: '#04a4fcWarped Stem'
        quantity: 1
      buyPrice: 300
      slot: 11
    3:
      type: item
      item:
        material: CHERRY_LOG
        name: '#04a4fcCherry Log'
        quantity: 1
      buyPrice: 250
      slot: 12
    4:
      type: item
      item:
        material: OAK_PLANKS
        name: '#04a4fcOak Planks'
        quantity: 1
      buyPrice: 100
      slot: 13
    5:
      type: item
      item:
        material: SPRUCE_PLANKS
        name: '#04a4fcSpruce Planks'
        quantity: 1
      buyPrice: 100
      slot: 14
    6:
      type: item
      item:
        material: BIRCH_PLANKS
        name: '#04a4fcBirch Planks'
        quantity: 1
      buyPrice: 100
      slot: 15
    7:
      type: item
      item:
        material: JUNGLE_PLANKS
        name: '#04a4fcJungle Planks'
        quantity: 1
      buyPrice: 100
      slot: 16

blocks_page_3:
  name: "ѕʜᴏᴘ - ʙʟᴏᴄᴋѕ (ᴘᴀɢᴇ 3)"
  size: 27
  fillItem:
    material: GRAY_STAINED_GLASS_PANE
    name: " "
  buttons:
    goBack:
      slot: 18
    previousPage:
      slot: 0
      page: blocks_page_2  # Links back to the second page
    nextPage:
      slot: 5
      page: none  # No next page for the last page
  items:
    1:
      type: item
      item:
        material: BLACKSTONE
        name: '#04a4fcBlackstone'
        quantity: 64
      buyPrice: 4000
      slot: 10
    2:
      type: item
      item:
        material: BASALT
        name: '#04a4fcBasalt'
        quantity: 64
      buyPrice: 3500
      slot: 11
    3:
      type: item
      item:
        material: NETHERRACK
        name: '#04a4fcNetherrack'
        quantity: 64
      buyPrice: 2000
      slot: 12
    4:
      type: item
      item:
        material: SOUL_SOIL
        name: '#04a4fcSoul Soil'
        quantity: 64
      buyPrice: 5000
      slot: 13
    5:
      type: item
      item:
        material: MAGMA_BLOCK
        name: '#04a4fcMagma Block'
        quantity: 64
      buyPrice: 6000
      slot: 14
    6:
      type: item
      item:
        material: LAVA_BUCKET
        name: '#04a4fcLava Bucket'
        quantity: 1
      buyPrice: 10000
      slot: 15
Kodari AI
KodariAug 10 at 5:17 am 1
ShopBlocksGUIOverhaul
Overhauls the blocks shop GUI configuration, consolidating all block items into a single 27-slot inventory. The second row exclusively displays purchasable blocks, while the third row houses navigation buttons for back, previous, and next pages. Each block is sold individually with a fixed quantity of one, priced between $150 and $400 per block, ensuring a balanced and user-friendly shopping experience.

Place this file at plugins/ShopGUIPlus/shops/blocks.yml. It keeps all listed entries, places shop items exclusively in the second row, moves navigation buttons to the third row, sets every quantity to 1, and keeps prices between $150 and $400.

boltzz0

i need the next pages to work and previous pages to work?

Kodari AI
KodariAug 10 at 5:18 am 1

Fixed the page navigation in blocks.yml:

  • Page 1:

    • Next button → blocks_page_2

    • Previous button remains disabled

  • Page 2:

    • Previous button → Blocks

    • Next button → blocks_page_3

  • Page 3:

    • Previous button → blocks_page_2

    • Next button remains disabled

Place/reload it at:

plugins/ShopGUIPlus/shops/blocks.yml

If ShopGUI+ does not automatically reload shop files, restart the server or use its shop reload command.

boltzz0

i dont see the next button pages do you want the actual config to shopgui+

Kodari AI
KodariAug 10 at 5:18 am 1

Yes. Please send the actual ShopGUI+ configuration that defines the shop GUI and navigation.

Ideally include:

  • config.yml

  • The relevant shop/category file

  • Any inventory GUI/menu configuration file

  • Your ShopGUI+ version

  • Server version, such as Paper 1.20.4 or 1.21.x

The blocks.yml you sent uses a custom page format, so ShopGUI+ may not recognize previousPage, nextPage, or page: blocks_page_2. Once I can see ShopGUI+’s actual format, I can make the next and previous buttons function correctly.

boltzz0
📎 1 file 25,560 chars
📄
config (12).yml
yml 901 lines
▶
#
# See our Wiki for ShopGUI+ at the link below:
# https://docs.brcdev.net/ -> Both 'General' & 'ShopGUI+' Sections are for ShopGUI+
#
# Is this your first time using ShopGUI+? Start here:
# https://docs.brcdev.net/#/shopgui/shops-items-setup
#
database:
  # Database backend type, can be set to mysql or sqlite
  type: sqlite
  # MySQL database host
  mySQLHost: localhost
  # MySQL connection port number
  mySQLPort: 3306
  # MySQL database name
  mySQLDatabase: db
  # MySQL database user
  mySQLUser: root
  # MySQL user's password
  mySQLPassword: ""
  # MySQL table names
  tableNames:
    players: "players"

# Types of economies which will be enabled and possible to use within shops.
# Supported economies:
#  - EXP (default Minecraft experience points)
#  - EXP_LEVELS (default Minecraft experience levels; integer prices recommended, prices are rounded down)
#  - VAULT (requires https://www.spigotmc.org/resources/vault.34315/)
#  - GEMS_ECONOMY (requires https://www.spigotmc.org/resources/gemseconomy.19655/)
#  - GRINGOTTS (requires https://www.spigotmc.org/resources/gringotts.42071/)
#  - MYSQL_TOKENS (requires https://www.spigotmc.org/resources/mysql-tokens.7535/)
#  - PLAYER_POINTS (requires https://www.spigotmc.org/resources/playerpoints.80745/)
#  - TOKEN_ENCHANT (requires https://www.spigotmc.org/resources/tokenenchant.2287/)
#  - TOKEN_MANAGER (requires https://www.spigotmc.org/resources/tokenmanager.8610/)
#  - VOTING_PLUGIN (requires https://www.spigotmc.org/resources/votingplugin.15358/)
#  - COINS_ENGINE (requires https://www.spigotmc.org/resources/coinsengine.84121/)
# First position will be the default economy for all shops.
economyTypes:
  - VAULT
# Name of the main INVENTORY GUI
shopMenuName: "&f                 &8&lꜱʜᴏᴘ   &f"
# Size of the main INVENTORY GUI, valid values are 9, 18, 27, 36, 45 and 54
shopMenuSize: 27
# Choose an item to fill the empty slots of menu with
shopMenuFillItem:
  material: AIR
  name: " "
# Define whether selling all with middle mouse button is enabled
enableSellAll: false
# Define whether the buy INVENTORY GUI with option to select quantity is enabled
enableBuyGUI: true
# Define whether the sell INVENTORY GUI with option to select quantity is enabled
enableSellGUI: false
# Define whether sell all button in SellGUI is enabled (enableSellGUI has to be enabled too)
enableSellGUISellAll: false
# Define whether after closing/buying/selling the shop INVENTORY GUI should be opened again
returnToShop: true
# Define whether the quick buy/sell option should be enabled (amount selection INVENTORY GUI will stay open until player closes it)
quickBuySell: true
# Define whether lines containing the %buy% placeholder should be hidden for unbuyable items
hideBuyPriceForUnbuyable: true
# Choose placeholder for the price when hideBuyPriceForUnbuyable is disabled
buyPriceForUnsellablePlaceholder: "-"
# Define whether lines containing the %sell% placeholder should be hidden for unsellable items
hideSellPriceForUnsellable: true
# Choose placeholder for the price when hideSellPriceForUnsellable is disabled
sellPriceForUnsellablePlaceholder: "-"
# Choose actions for mouse clicks inside shops
# Supported click types: all from ClickType enum (https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/ClickType.html)
# Supported actions: BUY, SELL, SELL_ALL, NONE
clickActions:
  LEFT: BUY
  RIGHT: BUY
  SHIFT_RIGHT: BUY
  MIDDLE: BUY
# Maximum amount of enchantments players can add to an item, set to -1 for no limit
maxEnchantments: 3
# Choose whether players should be able to buy enchantments only 1 level higher than current (e.g. player has sword with Sharpness 1, they could buy only Sharpness 2)
limitEnchantmentLevelDiff: false
# Define whether the amount selection double click bug fix should be enabled
enableAmountSelectionFix: true
# Define whether players should be able to use sell all option to sell all their items (allowAllSellAllStackSizes = true) or only amount multiplied by the original stack size of the shop item (allowAllSellAllStackSizes = false)
allowAllSellAllStackSizes: false
# Define whether all prices should be rounded up, down, to the nearest whole number or not rounded (valid values are UP, DOWN, NEAREST and NONE)
roundPrices: none
# Define whether main menu (/shop command) should be disabled. The only way to access shops will be to use /shop  when you disable it.
disableMainMenu: false
# Choose if different messages should be sent when someone buy/sell items for $0 (MSG_ITEM_BOUGHTFREE, MSG_ITEM_SOLDFREE, MSG_ITEM_SOLDALLFREE)
useDifferentMessagesForFreeItems: true
# Choose if item names should have first letters of their names capitalized, for instance nether brick would become Nether Brick
capitalizeItemNames: true
# Choose the type of price modifiers. (BOTH (permission modifiers have higher priority than command-ones), COMMAND, PERMISSION)
priceModifiersType: BOTH
# Choose if the INVENTORY GUI shall be closed after using the Sell All feature
closeGuiAfterSellAll: false
# Choose if bulk buy/sell guis should be opened immediately after clicking an item (enableBuyGUI and enableSellGUI have to be enabled as well and players need the bulk buy/sell permissions)
openBulkGuiImmediately: false
# Choose if players who have the shop opened by console with /shop [player] should be able to access all shops regardless of permissions they have
sudoAllowAllShopsAccess: false
# Choose which items stack size should be capped at 16 inside the amount selection INVENTORY GUI so players can't buy e.g. oversized ender pearl stacks
# Format is same as for regular items in shops yaml
# Note: For potions, it checks for exact match first. If none is found and potion without type is set here, it is used
# Warning: Potions don't stack anymore on 1.21 and newer
itemStackSizeCappedAt:
  1:
    material: ENDER_PEARL
    size: 16
  2:
    material: SNOWBALL
    size: 16
  3:
    material: EGG
    size: 16
  4:
    material: BUCKET
    size: 1
# Choose what gamemodes will prevent players from accessing shops. Valid values: ADVENTURE, CREATIVE, SPECTATOR, SURVIVAL
disableShopsInGamemodes:
  - ADVENTURE
  - CREATIVE
  - SPECTATOR
# Choose in which worlds players won't be able to access the shop. Same list format as disableShopsInGamemodes
disableShopsInWorlds: [ ]

# Choose whether price modifiers should be displayed in percents instead of decimals (e.g. 10% instead of 0.10), remember you will still have to use the decimal way in commands
displayPriceModifiersInPercents: true

# Choose whether the world-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
disableSudoWorldPermissionCheck: false

# Choose whether the shop-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
disableSudoShopPermissionCheck: false

# Choose whether the Enchantment Item Type is allowed to enchant items with unsafe enchants. (e.g. Sticks with Sharpness 25)
disableUnsafeEnchantmentCheck: false

# Choose whether the Enchantment Item Type is allowed to apply enchants on items that already have lower levels of the same enchant. (e.g. Enchant Sharpness 3 on an item with Sharpness 1)
allowEnchantmentLevelIncrease: true

# Choose sounds for certain INVENTORY GUI actions. Full list is available at https://docs.brcdev.net/#/sounds
sounds:
  MAIN_MENU_OPEN: UI_BUTTON_CLICK
  SHOP_OPEN: UI_BUTTON_CLICK
  SHOP_SELECT_ITEM: UI_BUTTON_CLICK
  SHOP_SWITCH_PAGE: ITEM_BOOK_PAGE_TURN
  SELL_ITEM: ENTITY_EXPERIENCE_ORB_PICKUP
  SELL_ALL_ITEM: ENTITY_EXPERIENCE_ORB_PICKUP
  BUY_ITEM: ENTITY_EXPERIENCE_ORB_PICKUP

# Choose predefined settings for all items (will be overriden when set explicitly for an item in shops yaml)
defaultItemSettings:
  # Choose whether item meta (name, lore etc.) should be compared when players attempt to sell an item
  compareMeta: false
  # Choose whether item meta should be removed from an item when it's purchased by a player from the shop
  stripItemMeta: false
  # Choose whether item model should be compared when players attempt to sell an item
  compareModel: true
  # Choose whether item damage/durability should be compared when players attempt to sell an item
  compareDamage: false
  # Choose whether item NBT data should be compared when players attempt to sell an item
  compareNbt: false
  # Choose whether item repair cost (often acquired from combining two or more enchantment books) should be compared when players attempt to sell an item
  compareRepairCost: false

# Format of item lores in shops, %buy% will be replaced with the buy price and %sell% with sell price
shopItemLoreFormat:
  # This lore will be applied to items
  item:
    - "&7Buy price: &a%buy%"
    - ""
  # This lore will be applied to items in the buy INVENTORY GUI (when enableBuyGUI is set to true)
  itemBuyGUI:
    - "&7Quantity: &a%amount%"
    - "&7Buy price: &a%buy%"
  # This lore will be applied to items in the sell INVENTORY GUI (when enableSellGUI is set to true)
  itemSellGUI:
    - "&7Quantity: &a%amount%"
  # This lore will be applied to the sell all button in the sell INVENTORY GUI (when enableSellGUI and enableSellGUISellAll are set to true)
  itemSellGUISellAll:
    - ""
  # This one to permissions
  permission:
    - "&7Buy price: &a%buy%"
  # And this one to enchantments
  enchantment:
    - "&7Buy price: &a%buy%"
  # And the last one to commands
  command:
    - "&7Buy price: &a%buy%"

# Logging settings
log:
  # Define whether transactions will be logged to the console/main server log
  toConsole: false
  # Define whether transactions will be logged to a separate log
  toFile: false
  # Date format of transactions (http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
  formatDate: "yyyy/MM/dd HH:mm:ss"
  # Log message for bought command
  formatBuyCommand: "%player% bought %amount% x %command% command for %price% from %shop% shop"
  # Log message for bought enchantment
  formatBuyEnchantment: "%player% bought %enchantment% enchantment for %price% from %shop% shop"
  # Log message for bought permission
  formatBuyPermission: "%player% bought %permission% permission for %price% from %shop% shop"
  # Log message for bought items
  formatBuy: "%player% bought %amount% x %item% for %price% from %shop% shop"
  # Log message for sold items
  formatSell: "%player% sold %amount% x %item% for %price% to %shop% shop"
  # Log message for sold all items
  formatSellAll: "%player% sold all %amount% x %item% for %price% to %shop% shop"

# Sell hand command settings
sellHand:
  # When set to true, players will be able to sell any quantity of the item (the price will be calculated from the base price)
  allowAllQuantities: true
  # When set to true, /sell hand will work same way as /sell handall does
  sellsAllItems: false
  # When set to true, free items (with sell price of $0) will be excluded from being sold using /sell hand and /sell handall
  excludeFreeItems: true
  # When set to true, items in armor slots will be excluded from being sold using /sell hand and /sell handall
  excludeArmorSlots: true
  # When set to true, items in the off-hand slot will be excluded from being sold using /sell hand and handall
  excludeOffHand: false

# Sell all command settings
sellAll:
  # When set to true, players will get a detailed summary with prices of each item stack sold
  detailedSummary: false
  # Choose if maximal sell price of an item across all shops should be chosen in sell all. Enabling this may affect sell command performance when having lots of shops/items
  findMaxSellPrice: true
  # When set to true, free items (with sell price of $0) will be excluded from being sold using /sell all
  excludeFreeItems: true
  # When set to true, items in armor slots will be excluded from being sold using /sell all
  excludeArmorSlots: true
  # When set to true, items in the off-hand slot will be excluded from being sold using /sell all
  excludeOffHand: false

# Disable commands from registering - useful if you want a different plugin to execute on one of our commands.
# IMPORTANT: It requires a full server restart to take effect.
disableCommands:
  # Disable /sell command from being registered
  sell: true

buttons:
  goBack:
    item:
      material: RED_STAINED_GLASS_PANE
      amount: 1
      damage: 0
      name: "#fc0404ʙᴀᴄᴋ"
      lore:
        - "&fClick to return"
    slot: 18
  previousPage:
    item:
      material: ARROW
      quantity: 1
      name: "&e&lPrevious page"
    slot: 18
  nextPage:
    item:
      material: ARROW
      quantity: 1
      name: "&e&lNext page"
    slot: 26

amountSelectionGUIBulkBuy:
  size: 18
  fillItem:
    material: AIR
    name: "&7"
  replaceButtonsType: true
  buttons:
    buy1:
      item:
        material: CHEST
        quantity: 1
        name: "&aBuy 1 stack"
        lore:
          - "&7Price: &c%buy%"
      value: 1
      slot: 0
    buy2:
      item:
        material: CHEST
        quantity: 2
        name: "&aBuy 2 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 2
      slot: 1
    buy3:
      item:
        material: CHEST
        quantity: 3
        name: "&aBuy 3 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 3
      slot: 2
    buy4:
      item:
        material: CHEST
        quantity: 4
        name: "&aBuy 4 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 4
      slot: 3
    buy5:
      item:
        material: CHEST
        quantity: 5
        name: "&aBuy 5 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 5
      slot: 4
    buy6:
      item:
        material: CHEST
        quantity: 6
        name: "&aBuy 6 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 6
      slot: 5
    buy7:
      item:
        material: CHEST
        quantity: 7
        name: "&aBuy 7 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 7
      slot: 6
    buy8:
      item:
        material: CHEST
        quantity: 8
        name: "&aBuy 8 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 8
      slot: 7
    buy9:
      item:
        material: CHEST
        quantity: 9
        name: "&aBuy 9 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 9
      slot: 8
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

amountSelectionGUIBulkSell:
  size: 18
  fillItem:
    material: AIR
    name: "&7"
  replaceButtonsType: true
  buttons:
    sell1:
      item:
        material: CHEST
        quantity: 1
        name: "&aSell 1 stack"
        lore:
          - "&7Price: &c%sell%"
      value: 1
      slot: 0
    sell2:
      item:
        material: CHEST
        quantity: 2
        name: "&aSell 2 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 2
      slot: 1
    sell3:
      item:
        material: CHEST
        quantity: 3
        name: "&aSell 3 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 3
      slot: 2
    sell4:
      item:
        material: CHEST
        quantity: 4
        name: "&aSell 4 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 4
      slot: 3
    sell5:
      item:
        material: CHEST
        quantity: 5
        name: "&aSell 5 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 5
      slot: 4
    sell6:
      item:
        material: CHEST
        quantity: 6
        name: "&aSell 6 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 6
      slot: 5
    sell7:
      item:
        material: CHEST
        quantity: 7
        name: "&aSell 7 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 7
      slot: 6
    sell8:
      item:
        material: CHEST
        quantity: 8
        name: "&aSell 8 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 8
      slot: 7
    sell9:
      item:
        material: CHEST
        quantity: 9
        name: "&aSell 9 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 9
      slot: 8
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

# Elements of the bulk buy INVENTORY GUI
  amountSelectionGUIBulkBuy:
  # Size of the INVENTORY GUI, valid values are 9, 18, 27, 36, 45 and 54
   size: 18
  # Fill item
   fillItem:
    material: AIR
    name: " "
  # Choose if buttons type should be replaced with the bought item's type
   replaceButtonsType: true
  # Buttons
   buttons:
    # "Buy 1 stack" button
    buy1:
      item:
        material: CHEST
        quantity: 1
        name: "&aBuy 1 stack"
        lore:
          - "&7Price: &c%buy%"
      # Value indicated the amount of stacks
      value: 1
      slot: 0
    # "Buy 2 stacks" button
    buy2:
      item:
        material: CHEST
        quantity: 2
        name: "&aBuy 2 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 2
      slot: 1
    # "Buy 3 stacks" button
    buy3:
      item:
        material: CHEST
        quantity: 3
        name: "&aBuy 3 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 3
      slot: 2
    # "Buy 4 stacks" button
    buy4:
      item:
        material: CHEST
        quantity: 4
        name: "&aBuy 4 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 4
      slot: 3
    # "Buy 5 stacks" button
    buy5:
      item:
        material: CHEST
        quantity: 5
        name: "&aBuy 5 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 5
      slot: 4
    # "Buy 6 stacks" button
    buy6:
      item:
        material: CHEST
        quantity: 6
        name: "&aBuy 6 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 6
      slot: 5
    # "Buy 7 stacks" button
    buy7:
      item:
        material: CHEST
        quantity: 7
        name: "&aBuy 7 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 7
      slot: 6
    # "Buy 8 stacks" button
    buy8:
      item:
        material: CHEST
        quantity: 8
        name: "&aBuy 8 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 8
      slot: 7
    # "Buy 9 stacks" button
    buy9:
      item:
        material: CHEST
        quantity: 9
        name: "&aBuy 9 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 9
      slot: 8
    # "Cancel" button
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

# Elements of the bulk buy INVENTORY GUI
  amountSelectionGUIBulkSell:
  # Size of the INVENTORY GUI, valid values are 9, 18, 27, 36, 45 and 54
   size: 18
  # Fill item
   fillItem:
    material: AIR
    name: " "
  # Choose if buttons type should be replaced with the sold item's type
   replaceButtonsType: true
  # Buttons
   buttons:
    # "Sell 1 stack" button
    sell1:
      item:
        material: CHEST
        quantity: 1
        name: "&aSell 1 stack"
        lore:
          - "&7Price: &c%sell%"
      # Value indicated the amount of stacks
      value: 1
      slot: 0
    # "Sell 2 stacks" button
    sell2:
      item:
        material: CHEST
        quantity: 2
        name: "&aSell 2 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 2
      slot: 1
    # "Sell 3 stacks" button
    sell3:
      item:
        material: CHEST
        quantity: 3
        name: "&aSell 3 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 3
      slot: 2
    # "Sell 4 stacks" button
    sell4:
      item:
        material: CHEST
        quantity: 4
        name: "&aSell 4 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 4
      slot: 3
    # "Sell 5 stacks" button
    sell5:
      item:
        material: CHEST
        quantity: 5
        name: "&aSell 5 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 5
      slot: 4
    # "Sell 6 stacks" button
    sell6:
      item:
        material: CHEST
        quantity: 6
        name: "&aSell 6 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 6
      slot: 5
    # "Sell 7 stacks" button
    sell7:
      item:
        material: CHEST
        quantity: 7
        name: "&aSell 7 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 7
      slot: 6
    # "Sell 8 stacks" button
    sell8:
      item:
        material: CHEST
        quantity: 8
        name: "&aSell 8 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 8
      slot: 7
    # "Sell 9 stacks" button
    sell9:
      item:
        material: CHEST
        quantity: 9
        name: "&aSell 9 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 9
      slot: 8
    # "Cancel" button
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

# Elements of the regular buy/sell INVENTORY GUI
amountSelectionGUI:
  size: 27
  fillItem:
    material: AIR
    name: "&7"
  itemSlot: 13
  buttons:
    set1:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 64
        name: "&cRemove 64"
      slot: 9
    remove10:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 10
        name: "&cRemove 10"
      slot: 10
    remove1:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 1
        name: "&cRemove 1"
      slot: 11
    add1:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 1
        name: "&aAdd 1"
      slot: 15
    add10:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 10
        name: "&aAdd 10"
      slot: 16
    set16:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 16
        name: "&aSet to 16"
      slot: 17
    set64:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 64
        name: "&aSet to 64"
      slot: 17
    confirm:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 1
        name: "#04fc04ᴄᴏɴꜰɪʀᴍ"
        lore:
          - "&fClick to buy"
      slot: 23
    cancel:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 1
        name: "#fc0404ᴄᴀɴᴄᴇʟ"
        lore:
          - "&fClick to cancel"
      slot: 21

# IGNORE THESE - THEY ARE USELESS WHEN USING THE DONUTSMP CONFGIGURATION
########################################################################
    sellAll:
      item:
        material: LIME_STAINED_GLASS
        quantity: 1
        name: "&a&lSell all"
      slot: 40
    buyMore:
      item:
        material: LIME_STAINED_GLASS
        quantity: 64
        name: "&a&lBuy more"
      slot: 49
    sellMore:
      item:
        material: LIME_STAINED_GLASS
        quantity: 64
        name: "&a&lSell more"
      slot: 49

shopMenuItems:
  1:
    item:
      material: END_STONE
      quantity: 1
      damage: 0
      name: "#04fc84ᴇɴᴅ"
      lore:
        - "&fClick to view the end shop"
    shop: "end"
    slot: 11
  2:
    item:
      material: NETHERRACK
      quantity: 1
      damage: 0
      name: "#04fc84ɴᴇᴛʜᴇʀ"
      lore:
        - "&fClick to view the nether shop"
    shop: "nether"
    slot: 12
  3:
    item:
      material: TOTEM_OF_UNDYING
      quantity: 1
      damage: 0
      name: "#04fc84ɢᴇᴀʀ"
      lore:
        - "&fClick to view the gear shop"
    shop: "gear"
    slot: 13
  4:
    item:
      material: COOKED_BEEF
      quantity: 1
      damage: 0
      name: "#04fc84ꜰᴏᴏᴅ"
      lore:
        - "&fClick to view the food shop"
    shop: "food"
    slot: 14

  6:
    item:
      material: GRASS_BLOCK
      quantity: 1
      damage: 0
      name: "&aʙʟᴏᴄᴋꜱ"
      lore:
        - "&fClick to view the Blocks shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "Blocks"
    slot: 15
  7:
    item:
      material: NETHERITE_HELMET
      quantity: 1
      damage: 0
      name: "&5ꜱᴘɪʀᴀʟ"
      lore:
        - "&fClick to view the ꜱᴘɪʀᴀʟ shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "vip_gear"
    slot: 10
  8:
    item:
      material: DIAMOND_HELMET
      quantity: 1
      damage: 0
      name: "&bᴀʀᴍᴏʀ"
      lore:
        - "&fClick to view the armor shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "enchanted_armor"
    slot: 16
  9:
    item:
      material: REDSTONE
      quantity: 1
      damage: 0
      name: "&4ʀᴇᴅꜱᴛᴏɴᴇ"
      lore:
        - "&fClick to view the redstone shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "redstone_shop"
    slot: 4


# Format numbers within your messages using these options.
numberFormat:
  decimalSeparator: "."
  groupingSeparator: ","
  minimumIntegerDigits: 1
  maximumIntegerDigits: 32
  minimumFractionDigits: 0
  maximumFractionDigits: 8
  hideFraction: true

  shortScale:
    enableShortScaleNumbering: false
    shortScaleLimit: 1000000
    shortHandDecimalLimit: 2
    shortHandNumberLimit: 32

INVENTORY GUI:
  clickCooldown: 0
Kodari AI
KodariAug 10 at 5:20 am 1
  1. Fix the navigation button slot conflict in the ShopGUI+ main config.

  2. Convert the blocks shop to ShopGUI+’s automatic pagination format so next/previous pages are generated correctly.

  3. Keep the blocks in row 2 and navigation in row 3.

The issue is in the main ShopGUI+ config: both goBack and previousPage use slot 18, so they overlap. Also, ShopGUI+ handles pagination automatically; the page: links in blocks.yml are not needed.

In the main config, change the global buttons: section to:

YAML
buttons:
  goBack:
    item:
      material: RED_STAINED_GLASS_PANE
      amount: 1
      damage: 0
      name: "#fc0404ʙᴀᴄᴋ"
      lore:
        - "&fClick to return"
    slot: 18

  previousPage:
    item:
      material: ARROW
      quantity: 1
      name: "&e&lPrevious page"
    slot: 22

  nextPage:
    item:
      material: ARROW
      quantity: 1
      name: "&e&lNext page"
    slot: 26

Then replace blocks.yml with one shop named Blocks. Do not use separate blocks_page_2 or blocks_page_3 sections. ShopGUI+ will create the pages automatically when the items exceed the available slots.

The important layout is:

Plain Text
Row 1: slots 0–8    empty
Row 2: slots 9–17   blocks
Row 3: slot 18      Back
       slot 22      Previous page
       slot 26      Next page

Your current blocks.yml has manually defined page sections and page links, which ShopGUI+ will not use for normal shop pagination. After updating both files, perform a full server restart rather than only reloading the shop.

Also verify that the file is located in the actual ShopGUI+ shops folder, normally:

Plain Text
plugins/ShopGUIPlus/shops/blocks.yml

The category entry in your main config already points to the correct shop ID:

YAML
shop: "Blocks"

So the shop name must remain exactly Blocks, including capitalization.

boltzz0

i renamed it and it still doesnt have pages can you send me a fixed version?

Kodari AI
KodariAug 10 at 5:21 am 1

Which plugin/config did you rename? Please send:

  1. The plugin name

  2. Your current .yml file

  3. The command or menu where pages should appear

  4. Any console error, if shown

I’ll return a corrected version with the proper pagination structure and tell you exactly where to place it.

boltzz0

i changed blocks -> Blocks

Kodari AI
KodariAug 10 at 5:21 am 1

Changing blocks to Blocks only renames the key; it does not add pagination. YAML/plugin keys are case-sensitive, and the exact key depends on the plugin.

Send the current config file (or paste its contents) and the plugin name, and I’ll return a fixed paginated version.

boltzz0

ShopGui+

📎 2 files 29,656 chars
📄
config (12).yml
yml 901 lines
▶
#
# See our Wiki for ShopGUI+ at the link below:
# https://docs.brcdev.net/ -> Both 'General' & 'ShopGUI+' Sections are for ShopGUI+
#
# Is this your first time using ShopGUI+? Start here:
# https://docs.brcdev.net/#/shopgui/shops-items-setup
#
database:
  # Database backend type, can be set to mysql or sqlite
  type: sqlite
  # MySQL database host
  mySQLHost: localhost
  # MySQL connection port number
  mySQLPort: 3306
  # MySQL database name
  mySQLDatabase: db
  # MySQL database user
  mySQLUser: root
  # MySQL user's password
  mySQLPassword: ""
  # MySQL table names
  tableNames:
    players: "players"

# Types of economies which will be enabled and possible to use within shops.
# Supported economies:
#  - EXP (default Minecraft experience points)
#  - EXP_LEVELS (default Minecraft experience levels; integer prices recommended, prices are rounded down)
#  - VAULT (requires https://www.spigotmc.org/resources/vault.34315/)
#  - GEMS_ECONOMY (requires https://www.spigotmc.org/resources/gemseconomy.19655/)
#  - GRINGOTTS (requires https://www.spigotmc.org/resources/gringotts.42071/)
#  - MYSQL_TOKENS (requires https://www.spigotmc.org/resources/mysql-tokens.7535/)
#  - PLAYER_POINTS (requires https://www.spigotmc.org/resources/playerpoints.80745/)
#  - TOKEN_ENCHANT (requires https://www.spigotmc.org/resources/tokenenchant.2287/)
#  - TOKEN_MANAGER (requires https://www.spigotmc.org/resources/tokenmanager.8610/)
#  - VOTING_PLUGIN (requires https://www.spigotmc.org/resources/votingplugin.15358/)
#  - COINS_ENGINE (requires https://www.spigotmc.org/resources/coinsengine.84121/)
# First position will be the default economy for all shops.
economyTypes:
  - VAULT
# Name of the main INVENTORY GUI
shopMenuName: "&f                 &8&lꜱʜᴏᴘ   &f"
# Size of the main INVENTORY GUI, valid values are 9, 18, 27, 36, 45 and 54
shopMenuSize: 27
# Choose an item to fill the empty slots of menu with
shopMenuFillItem:
  material: AIR
  name: " "
# Define whether selling all with middle mouse button is enabled
enableSellAll: false
# Define whether the buy INVENTORY GUI with option to select quantity is enabled
enableBuyGUI: true
# Define whether the sell INVENTORY GUI with option to select quantity is enabled
enableSellGUI: false
# Define whether sell all button in SellGUI is enabled (enableSellGUI has to be enabled too)
enableSellGUISellAll: false
# Define whether after closing/buying/selling the shop INVENTORY GUI should be opened again
returnToShop: true
# Define whether the quick buy/sell option should be enabled (amount selection INVENTORY GUI will stay open until player closes it)
quickBuySell: true
# Define whether lines containing the %buy% placeholder should be hidden for unbuyable items
hideBuyPriceForUnbuyable: true
# Choose placeholder for the price when hideBuyPriceForUnbuyable is disabled
buyPriceForUnsellablePlaceholder: "-"
# Define whether lines containing the %sell% placeholder should be hidden for unsellable items
hideSellPriceForUnsellable: true
# Choose placeholder for the price when hideSellPriceForUnsellable is disabled
sellPriceForUnsellablePlaceholder: "-"
# Choose actions for mouse clicks inside shops
# Supported click types: all from ClickType enum (https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/ClickType.html)
# Supported actions: BUY, SELL, SELL_ALL, NONE
clickActions:
  LEFT: BUY
  RIGHT: BUY
  SHIFT_RIGHT: BUY
  MIDDLE: BUY
# Maximum amount of enchantments players can add to an item, set to -1 for no limit
maxEnchantments: 3
# Choose whether players should be able to buy enchantments only 1 level higher than current (e.g. player has sword with Sharpness 1, they could buy only Sharpness 2)
limitEnchantmentLevelDiff: false
# Define whether the amount selection double click bug fix should be enabled
enableAmountSelectionFix: true
# Define whether players should be able to use sell all option to sell all their items (allowAllSellAllStackSizes = true) or only amount multiplied by the original stack size of the shop item (allowAllSellAllStackSizes = false)
allowAllSellAllStackSizes: false
# Define whether all prices should be rounded up, down, to the nearest whole number or not rounded (valid values are UP, DOWN, NEAREST and NONE)
roundPrices: none
# Define whether main menu (/shop command) should be disabled. The only way to access shops will be to use /shop  when you disable it.
disableMainMenu: false
# Choose if different messages should be sent when someone buy/sell items for $0 (MSG_ITEM_BOUGHTFREE, MSG_ITEM_SOLDFREE, MSG_ITEM_SOLDALLFREE)
useDifferentMessagesForFreeItems: true
# Choose if item names should have first letters of their names capitalized, for instance nether brick would become Nether Brick
capitalizeItemNames: true
# Choose the type of price modifiers. (BOTH (permission modifiers have higher priority than command-ones), COMMAND, PERMISSION)
priceModifiersType: BOTH
# Choose if the INVENTORY GUI shall be closed after using the Sell All feature
closeGuiAfterSellAll: false
# Choose if bulk buy/sell guis should be opened immediately after clicking an item (enableBuyGUI and enableSellGUI have to be enabled as well and players need the bulk buy/sell permissions)
openBulkGuiImmediately: false
# Choose if players who have the shop opened by console with /shop [player] should be able to access all shops regardless of permissions they have
sudoAllowAllShopsAccess: false
# Choose which items stack size should be capped at 16 inside the amount selection INVENTORY GUI so players can't buy e.g. oversized ender pearl stacks
# Format is same as for regular items in shops yaml
# Note: For potions, it checks for exact match first. If none is found and potion without type is set here, it is used
# Warning: Potions don't stack anymore on 1.21 and newer
itemStackSizeCappedAt:
  1:
    material: ENDER_PEARL
    size: 16
  2:
    material: SNOWBALL
    size: 16
  3:
    material: EGG
    size: 16
  4:
    material: BUCKET
    size: 1
# Choose what gamemodes will prevent players from accessing shops. Valid values: ADVENTURE, CREATIVE, SPECTATOR, SURVIVAL
disableShopsInGamemodes:
  - ADVENTURE
  - CREATIVE
  - SPECTATOR
# Choose in which worlds players won't be able to access the shop. Same list format as disableShopsInGamemodes
disableShopsInWorlds: [ ]

# Choose whether price modifiers should be displayed in percents instead of decimals (e.g. 10% instead of 0.10), remember you will still have to use the decimal way in commands
displayPriceModifiersInPercents: true

# Choose whether the world-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
disableSudoWorldPermissionCheck: false

# Choose whether the shop-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
disableSudoShopPermissionCheck: false

# Choose whether the Enchantment Item Type is allowed to enchant items with unsafe enchants. (e.g. Sticks with Sharpness 25)
disableUnsafeEnchantmentCheck: false

# Choose whether the Enchantment Item Type is allowed to apply enchants on items that already have lower levels of the same enchant. (e.g. Enchant Sharpness 3 on an item with Sharpness 1)
allowEnchantmentLevelIncrease: true

# Choose sounds for certain INVENTORY GUI actions. Full list is available at https://docs.brcdev.net/#/sounds
sounds:
  MAIN_MENU_OPEN: UI_BUTTON_CLICK
  SHOP_OPEN: UI_BUTTON_CLICK
  SHOP_SELECT_ITEM: UI_BUTTON_CLICK
  SHOP_SWITCH_PAGE: ITEM_BOOK_PAGE_TURN
  SELL_ITEM: ENTITY_EXPERIENCE_ORB_PICKUP
  SELL_ALL_ITEM: ENTITY_EXPERIENCE_ORB_PICKUP
  BUY_ITEM: ENTITY_EXPERIENCE_ORB_PICKUP

# Choose predefined settings for all items (will be overriden when set explicitly for an item in shops yaml)
defaultItemSettings:
  # Choose whether item meta (name, lore etc.) should be compared when players attempt to sell an item
  compareMeta: false
  # Choose whether item meta should be removed from an item when it's purchased by a player from the shop
  stripItemMeta: false
  # Choose whether item model should be compared when players attempt to sell an item
  compareModel: true
  # Choose whether item damage/durability should be compared when players attempt to sell an item
  compareDamage: false
  # Choose whether item NBT data should be compared when players attempt to sell an item
  compareNbt: false
  # Choose whether item repair cost (often acquired from combining two or more enchantment books) should be compared when players attempt to sell an item
  compareRepairCost: false

# Format of item lores in shops, %buy% will be replaced with the buy price and %sell% with sell price
shopItemLoreFormat:
  # This lore will be applied to items
  item:
    - "&7Buy price: &a%buy%"
    - ""
  # This lore will be applied to items in the buy INVENTORY GUI (when enableBuyGUI is set to true)
  itemBuyGUI:
    - "&7Quantity: &a%amount%"
    - "&7Buy price: &a%buy%"
  # This lore will be applied to items in the sell INVENTORY GUI (when enableSellGUI is set to true)
  itemSellGUI:
    - "&7Quantity: &a%amount%"
  # This lore will be applied to the sell all button in the sell INVENTORY GUI (when enableSellGUI and enableSellGUISellAll are set to true)
  itemSellGUISellAll:
    - ""
  # This one to permissions
  permission:
    - "&7Buy price: &a%buy%"
  # And this one to enchantments
  enchantment:
    - "&7Buy price: &a%buy%"
  # And the last one to commands
  command:
    - "&7Buy price: &a%buy%"

# Logging settings
log:
  # Define whether transactions will be logged to the console/main server log
  toConsole: false
  # Define whether transactions will be logged to a separate log
  toFile: false
  # Date format of transactions (http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
  formatDate: "yyyy/MM/dd HH:mm:ss"
  # Log message for bought command
  formatBuyCommand: "%player% bought %amount% x %command% command for %price% from %shop% shop"
  # Log message for bought enchantment
  formatBuyEnchantment: "%player% bought %enchantment% enchantment for %price% from %shop% shop"
  # Log message for bought permission
  formatBuyPermission: "%player% bought %permission% permission for %price% from %shop% shop"
  # Log message for bought items
  formatBuy: "%player% bought %amount% x %item% for %price% from %shop% shop"
  # Log message for sold items
  formatSell: "%player% sold %amount% x %item% for %price% to %shop% shop"
  # Log message for sold all items
  formatSellAll: "%player% sold all %amount% x %item% for %price% to %shop% shop"

# Sell hand command settings
sellHand:
  # When set to true, players will be able to sell any quantity of the item (the price will be calculated from the base price)
  allowAllQuantities: true
  # When set to true, /sell hand will work same way as /sell handall does
  sellsAllItems: false
  # When set to true, free items (with sell price of $0) will be excluded from being sold using /sell hand and /sell handall
  excludeFreeItems: true
  # When set to true, items in armor slots will be excluded from being sold using /sell hand and /sell handall
  excludeArmorSlots: true
  # When set to true, items in the off-hand slot will be excluded from being sold using /sell hand and handall
  excludeOffHand: false

# Sell all command settings
sellAll:
  # When set to true, players will get a detailed summary with prices of each item stack sold
  detailedSummary: false
  # Choose if maximal sell price of an item across all shops should be chosen in sell all. Enabling this may affect sell command performance when having lots of shops/items
  findMaxSellPrice: true
  # When set to true, free items (with sell price of $0) will be excluded from being sold using /sell all
  excludeFreeItems: true
  # When set to true, items in armor slots will be excluded from being sold using /sell all
  excludeArmorSlots: true
  # When set to true, items in the off-hand slot will be excluded from being sold using /sell all
  excludeOffHand: false

# Disable commands from registering - useful if you want a different plugin to execute on one of our commands.
# IMPORTANT: It requires a full server restart to take effect.
disableCommands:
  # Disable /sell command from being registered
  sell: true

buttons:
  goBack:
    item:
      material: RED_STAINED_GLASS_PANE
      amount: 1
      damage: 0
      name: "#fc0404ʙᴀᴄᴋ"
      lore:
        - "&fClick to return"
    slot: 18
  previousPage:
    item:
      material: ARROW
      quantity: 1
      name: "&e&lPrevious page"
    slot: 18
  nextPage:
    item:
      material: ARROW
      quantity: 1
      name: "&e&lNext page"
    slot: 26

amountSelectionGUIBulkBuy:
  size: 18
  fillItem:
    material: AIR
    name: "&7"
  replaceButtonsType: true
  buttons:
    buy1:
      item:
        material: CHEST
        quantity: 1
        name: "&aBuy 1 stack"
        lore:
          - "&7Price: &c%buy%"
      value: 1
      slot: 0
    buy2:
      item:
        material: CHEST
        quantity: 2
        name: "&aBuy 2 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 2
      slot: 1
    buy3:
      item:
        material: CHEST
        quantity: 3
        name: "&aBuy 3 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 3
      slot: 2
    buy4:
      item:
        material: CHEST
        quantity: 4
        name: "&aBuy 4 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 4
      slot: 3
    buy5:
      item:
        material: CHEST
        quantity: 5
        name: "&aBuy 5 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 5
      slot: 4
    buy6:
      item:
        material: CHEST
        quantity: 6
        name: "&aBuy 6 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 6
      slot: 5
    buy7:
      item:
        material: CHEST
        quantity: 7
        name: "&aBuy 7 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 7
      slot: 6
    buy8:
      item:
        material: CHEST
        quantity: 8
        name: "&aBuy 8 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 8
      slot: 7
    buy9:
      item:
        material: CHEST
        quantity: 9
        name: "&aBuy 9 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 9
      slot: 8
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

amountSelectionGUIBulkSell:
  size: 18
  fillItem:
    material: AIR
    name: "&7"
  replaceButtonsType: true
  buttons:
    sell1:
      item:
        material: CHEST
        quantity: 1
        name: "&aSell 1 stack"
        lore:
          - "&7Price: &c%sell%"
      value: 1
      slot: 0
    sell2:
      item:
        material: CHEST
        quantity: 2
        name: "&aSell 2 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 2
      slot: 1
    sell3:
      item:
        material: CHEST
        quantity: 3
        name: "&aSell 3 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 3
      slot: 2
    sell4:
      item:
        material: CHEST
        quantity: 4
        name: "&aSell 4 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 4
      slot: 3
    sell5:
      item:
        material: CHEST
        quantity: 5
        name: "&aSell 5 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 5
      slot: 4
    sell6:
      item:
        material: CHEST
        quantity: 6
        name: "&aSell 6 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 6
      slot: 5
    sell7:
      item:
        material: CHEST
        quantity: 7
        name: "&aSell 7 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 7
      slot: 6
    sell8:
      item:
        material: CHEST
        quantity: 8
        name: "&aSell 8 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 8
      slot: 7
    sell9:
      item:
        material: CHEST
        quantity: 9
        name: "&aSell 9 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 9
      slot: 8
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

# Elements of the bulk buy INVENTORY GUI
  amountSelectionGUIBulkBuy:
  # Size of the INVENTORY GUI, valid values are 9, 18, 27, 36, 45 and 54
   size: 18
  # Fill item
   fillItem:
    material: AIR
    name: " "
  # Choose if buttons type should be replaced with the bought item's type
   replaceButtonsType: true
  # Buttons
   buttons:
    # "Buy 1 stack" button
    buy1:
      item:
        material: CHEST
        quantity: 1
        name: "&aBuy 1 stack"
        lore:
          - "&7Price: &c%buy%"
      # Value indicated the amount of stacks
      value: 1
      slot: 0
    # "Buy 2 stacks" button
    buy2:
      item:
        material: CHEST
        quantity: 2
        name: "&aBuy 2 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 2
      slot: 1
    # "Buy 3 stacks" button
    buy3:
      item:
        material: CHEST
        quantity: 3
        name: "&aBuy 3 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 3
      slot: 2
    # "Buy 4 stacks" button
    buy4:
      item:
        material: CHEST
        quantity: 4
        name: "&aBuy 4 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 4
      slot: 3
    # "Buy 5 stacks" button
    buy5:
      item:
        material: CHEST
        quantity: 5
        name: "&aBuy 5 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 5
      slot: 4
    # "Buy 6 stacks" button
    buy6:
      item:
        material: CHEST
        quantity: 6
        name: "&aBuy 6 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 6
      slot: 5
    # "Buy 7 stacks" button
    buy7:
      item:
        material: CHEST
        quantity: 7
        name: "&aBuy 7 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 7
      slot: 6
    # "Buy 8 stacks" button
    buy8:
      item:
        material: CHEST
        quantity: 8
        name: "&aBuy 8 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 8
      slot: 7
    # "Buy 9 stacks" button
    buy9:
      item:
        material: CHEST
        quantity: 9
        name: "&aBuy 9 stacks"
        lore:
          - "&7Price: &c%buy%"
      value: 9
      slot: 8
    # "Cancel" button
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

# Elements of the bulk buy INVENTORY GUI
  amountSelectionGUIBulkSell:
  # Size of the INVENTORY GUI, valid values are 9, 18, 27, 36, 45 and 54
   size: 18
  # Fill item
   fillItem:
    material: AIR
    name: " "
  # Choose if buttons type should be replaced with the sold item's type
   replaceButtonsType: true
  # Buttons
   buttons:
    # "Sell 1 stack" button
    sell1:
      item:
        material: CHEST
        quantity: 1
        name: "&aSell 1 stack"
        lore:
          - "&7Price: &c%sell%"
      # Value indicated the amount of stacks
      value: 1
      slot: 0
    # "Sell 2 stacks" button
    sell2:
      item:
        material: CHEST
        quantity: 2
        name: "&aSell 2 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 2
      slot: 1
    # "Sell 3 stacks" button
    sell3:
      item:
        material: CHEST
        quantity: 3
        name: "&aSell 3 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 3
      slot: 2
    # "Sell 4 stacks" button
    sell4:
      item:
        material: CHEST
        quantity: 4
        name: "&aSell 4 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 4
      slot: 3
    # "Sell 5 stacks" button
    sell5:
      item:
        material: CHEST
        quantity: 5
        name: "&aSell 5 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 5
      slot: 4
    # "Sell 6 stacks" button
    sell6:
      item:
        material: CHEST
        quantity: 6
        name: "&aSell 6 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 6
      slot: 5
    # "Sell 7 stacks" button
    sell7:
      item:
        material: CHEST
        quantity: 7
        name: "&aSell 7 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 7
      slot: 6
    # "Sell 8 stacks" button
    sell8:
      item:
        material: CHEST
        quantity: 8
        name: "&aSell 8 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 8
      slot: 7
    # "Sell 9 stacks" button
    sell9:
      item:
        material: CHEST
        quantity: 9
        name: "&aSell 9 stacks"
        lore:
          - "&7Price: &c%sell%"
      value: 9
      slot: 8
    # "Cancel" button
    cancel:
      item:
        material: RED_STAINED_GLASS
        quantity: 1
        name: "&c&lCancel"
      slot: 13

# Elements of the regular buy/sell INVENTORY GUI
amountSelectionGUI:
  size: 27
  fillItem:
    material: AIR
    name: "&7"
  itemSlot: 13
  buttons:
    set1:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 64
        name: "&cRemove 64"
      slot: 9
    remove10:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 10
        name: "&cRemove 10"
      slot: 10
    remove1:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 1
        name: "&cRemove 1"
      slot: 11
    add1:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 1
        name: "&aAdd 1"
      slot: 15
    add10:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 10
        name: "&aAdd 10"
      slot: 16
    set16:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 16
        name: "&aSet to 16"
      slot: 17
    set64:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 64
        name: "&aSet to 64"
      slot: 17
    confirm:
      item:
        material: LIME_STAINED_GLASS_PANE
        quantity: 1
        name: "#04fc04ᴄᴏɴꜰɪʀᴍ"
        lore:
          - "&fClick to buy"
      slot: 23
    cancel:
      item:
        material: RED_STAINED_GLASS_PANE
        quantity: 1
        name: "#fc0404ᴄᴀɴᴄᴇʟ"
        lore:
          - "&fClick to cancel"
      slot: 21

# IGNORE THESE - THEY ARE USELESS WHEN USING THE DONUTSMP CONFGIGURATION
########################################################################
    sellAll:
      item:
        material: LIME_STAINED_GLASS
        quantity: 1
        name: "&a&lSell all"
      slot: 40
    buyMore:
      item:
        material: LIME_STAINED_GLASS
        quantity: 64
        name: "&a&lBuy more"
      slot: 49
    sellMore:
      item:
        material: LIME_STAINED_GLASS
        quantity: 64
        name: "&a&lSell more"
      slot: 49

shopMenuItems:
  1:
    item:
      material: END_STONE
      quantity: 1
      damage: 0
      name: "#04fc84ᴇɴᴅ"
      lore:
        - "&fClick to view the end shop"
    shop: "end"
    slot: 11
  2:
    item:
      material: NETHERRACK
      quantity: 1
      damage: 0
      name: "#04fc84ɴᴇᴛʜᴇʀ"
      lore:
        - "&fClick to view the nether shop"
    shop: "nether"
    slot: 12
  3:
    item:
      material: TOTEM_OF_UNDYING
      quantity: 1
      damage: 0
      name: "#04fc84ɢᴇᴀʀ"
      lore:
        - "&fClick to view the gear shop"
    shop: "gear"
    slot: 13
  4:
    item:
      material: COOKED_BEEF
      quantity: 1
      damage: 0
      name: "#04fc84ꜰᴏᴏᴅ"
      lore:
        - "&fClick to view the food shop"
    shop: "food"
    slot: 14

  6:
    item:
      material: GRASS_BLOCK
      quantity: 1
      damage: 0
      name: "&aʙʟᴏᴄᴋꜱ"
      lore:
        - "&fClick to view the Blocks shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "Blocks"
    slot: 15
  7:
    item:
      material: NETHERITE_HELMET
      quantity: 1
      damage: 0
      name: "&5ꜱᴘɪʀᴀʟ"
      lore:
        - "&fClick to view the ꜱᴘɪʀᴀʟ shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "vip_gear"
    slot: 10
  8:
    item:
      material: DIAMOND_HELMET
      quantity: 1
      damage: 0
      name: "&bᴀʀᴍᴏʀ"
      lore:
        - "&fClick to view the armor shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "enchanted_armor"
    slot: 16
  9:
    item:
      material: REDSTONE
      quantity: 1
      damage: 0
      name: "&4ʀᴇᴅꜱᴛᴏɴᴇ"
      lore:
        - "&fClick to view the redstone shop"
      flags:
        - HIDE_ATTRIBUTES
        - HIDE_PLACED_ON
        - HIDE_DESTROYS
        - HIDE_DYE
        - HIDE_ENCHANTS
        - HIDE_POTION_EFFECTS
        - HIDE_UNBREAKABLE
    shop: "redstone_shop"
    slot: 4


# Format numbers within your messages using these options.
numberFormat:
  decimalSeparator: "."
  groupingSeparator: ","
  minimumIntegerDigits: 1
  maximumIntegerDigits: 32
  minimumFractionDigits: 0
  maximumFractionDigits: 8
  hideFraction: true

  shortScale:
    enableShortScaleNumbering: false
    shortScaleLimit: 1000000
    shortHandDecimalLimit: 2
    shortHandNumberLimit: 32

INVENTORY GUI:
  clickCooldown: 0
📄
blocks.yml
yml 210 lines
▶
Blocks:
  name: "ѕʜᴏᴘ - ʙʟᴏᴄᴋѕ"
  size: 27
  fillItem:
    material: AIR
    name: " "
  buttons:
    goBack:
      slot: 18
    previousPage:
      slot: 18
      page: none  # No previous page for the first page
    nextPage:
      slot: 26
      page: blocks_page_2  # Links to the second page
  items:
    1:
      type: item
      item:
        material: OAK_LOG
        name: '#04a4fcOak Log'
        quantity: 1
      buyPrice: 200
      slot: 10
    2:
      type: item
      item:
        material: SPRUCE_LOG
        name: '#04a4fcSpruce Log'
        quantity: 1
      buyPrice: 200
      slot: 11
    3:
      type: item
      item:
        material: BIRCH_LOG
        name: '#04a4fcBirch Log'
        quantity: 1
      buyPrice: 200
      slot: 12
    4:
      type: item
      item:
        material: JUNGLE_LOG
        name: '#04a4fcJungle Log'
        quantity: 1
      buyPrice: 200
      slot: 13
    5:
      type: item
      item:
        material: ACACIA_LOG
        name: '#04a4fcAcacia Log'
        quantity: 1
      buyPrice: 200
      slot: 14
    6:
      type: item
      item:
        material: DARK_OAK_LOG
        name: '#04a4fcDark Oak Log'
        quantity: 1
      buyPrice: 200
      slot: 15
    7:
      type: item
      item:
        material: MANGROVE_LOG
        name: '#04a4fcMangrove Log'
        quantity: 1
      buyPrice: 250
      slot: 16

blocks_page_2:
  name: "ѕʜᴏᴘ - ʙʟᴏᴄᴋѕ (ᴘᴀɢᴇ 2)"
  size: 27
  fillItem:
    material: GRAY_STAINED_GLASS_PANE
    name: " "
  buttons:
    goBack:
      slot: 18
    previousPage:
      slot: 0
      page: blocks_page_1  # Links back to the first page
    nextPage:
      slot: 5
      page: blocks_page_3  # Links to the third page
  items:
    1:
      type: item
      item:
        material: CRIMSON_STEM
        name: '#04a4fcCrimson Stem'
        quantity: 1
      buyPrice: 300
      slot: 10
    2:
      type: item
      item:
        material: WARPED_STEM
        name: '#04a4fcWarped Stem'
        quantity: 1
      buyPrice: 300
      slot: 11
    3:
      type: item
      item:
        material: CHERRY_LOG
        name: '#04a4fcCherry Log'
        quantity: 1
      buyPrice: 250
      slot: 12
    4:
      type: item
      item:
        material: OAK_PLANKS
        name: '#04a4fcOak Planks'
        quantity: 1
      buyPrice: 100
      slot: 13
    5:
      type: item
      item:
        material: SPRUCE_PLANKS
        name: '#04a4fcSpruce Planks'
        quantity: 1
      buyPrice: 100
      slot: 14
    6:
      type: item
      item:
        material: BIRCH_PLANKS
        name: '#04a4fcBirch Planks'
        quantity: 1
      buyPrice: 100
      slot: 15
    7:
      type: item
      item:
        material: JUNGLE_PLANKS
        name: '#04a4fcJungle Planks'
        quantity: 1
      buyPrice: 100
      slot: 16

blocks_page_3:
  name: "ѕʜᴏᴘ - ʙʟᴏᴄᴋѕ (ᴘᴀɢᴇ 3)"
  size: 27
  fillItem:
    material: GRAY_STAINED_GLASS_PANE
    name: " "
  buttons:
    goBack:
      slot: 18
    previousPage:
      slot: 0
      page: blocks_page_2  # Links back to the second page
    nextPage:
      slot: 5
      page: none  # No next page for the last page
  items:
    1:
      type: item
      item:
        material: BLACKSTONE
        name: '#04a4fcBlackstone'
        quantity: 64
      buyPrice: 4000
      slot: 10
    2:
      type: item
      item:
        material: BASALT
        name: '#04a4fcBasalt'
        quantity: 64
      buyPrice: 3500
      slot: 11
    3:
      type: item
      item:
        material: NETHERRACK
        name: '#04a4fcNetherrack'
        quantity: 64
      buyPrice: 2000
      slot: 12
    4:
      type: item
      item:
        material: SOUL_SOIL
        name: '#04a4fcSoul Soil'
        quantity: 64
      buyPrice: 5000
      slot: 13
    5:
      type: item
      item:
        material: MAGMA_BLOCK
        name: '#04a4fcMagma Block'
        quantity: 64
      buyPrice: 6000
      slot: 14
    6:
      type: item
      item:
        material: LAVA_BUCKET
        name: '#04a4fcLava Bucket'
        quantity: 1
      buyPrice: 10000
      slot: 15
Kodari AI
KodariAug 10 at 5:26 am 3
  1. Correct the shop ID and page-link structure in blocks.yml.

  2. Remove the duplicate/broken pagination configuration from the main config.

  3. Return the fixed files and placement paths.

The problem is that ShopGUI+ does not use separate blocks_page_2 and blocks_page_3 shop sections. Pagination is created by adding page: 2 and page: 3 to items.

Also, the shop ID must be lowercase blocks because the file is named blocks.yml.

Replace /plugins/ShopGUIPlus/shops/blocks.yml

YAML
blocks:
  name: "&9&lBlocks (page %page%)"
  namePerPage:
    1: "&9&lBlocks &7(Page 1)"
    2: "&9&lBlocks &7(Page 2)"
    3: "&9&lBlocks &7(Page 3)"
  size: 27
  fillItem:
    material: GRAY_STAINED_GLASS_PANE
    name: " "

  items:
    1:
      type: item
      item:
        material: OAK_LOG
        name: "#04a4fcOak Log"
        quantity: 1
      buyPrice: 200
      slot: 10
      page: 1

    2:
      type: item
      item:
        material: SPRUCE_LOG
        name: "#04a4fcSpruce Log"
        quantity: 1
      buyPrice: 200
      slot: 11
      page: 1

    3:
      type: item
      item:
        material: BIRCH_LOG
        name: "#04a4fcBirch Log"
        quantity: 1
      buyPrice: 200
      slot: 12
      page: 1

    4:
      type: item
      item:
        material: JUNGLE_LOG
        name: "#04a4fcJungle Log"
        quantity: 1
      buyPrice: 200
      slot: 13
      page: 1

    5:
      type: item
      item:
        material: ACACIA_LOG
        name: "#04a4fcAcacia Log"
        quantity: 1
      buyPrice: 200
      slot: 14
      page: 1

    6:
      type: item
      item:
        material: DARK_OAK_LOG
        name: "#04a4fcDark Oak Log"
        quantity: 1
      buyPrice: 200
      slot: 15
      page: 1

    7:
      type: item
      item:
        material: MANGROVE_LOG
        name: "#04a4fcMangrove Log"
        quantity: 1
      buyPrice: 250
      slot: 16
      page: 1

    8:
      type: item
      item:
        material: CRIMSON_STEM
        name: "#04a4fcCrimson Stem"
        quantity: 1
      buyPrice: 300
      slot: 10
      page: 2

    9:
      type: item
      item:
        material: WARPED_STEM
        name: "#04a4fcWarped Stem"
        quantity: 1
      buyPrice: 300
      slot: 11
      page: 2

    10:
      type: item
      item:
        material: CHERRY_LOG
        name: "#04a4fcCherry Log"
        quantity: 1
      buyPrice: 250
      slot: 12
      page: 2

    11:
      type: item
      item:
        material: OAK_PLANKS
        name: "#04a4fcOak Planks"
        quantity: 1
      buyPrice: 100
      slot: 13
      page: 2

    12:
      type: item
      item:
        material: SPRUCE_PLANKS
        name: "#04a4fcSpruce Planks"
        quantity: 1
      buyPrice: 100
      slot: 14
      page: 2

    13:
      type: item
      item:
        material: BIRCH_PLANKS
        name: "#04a4fcBirch Planks"
        quantity: 1
      buyPrice: 100
      slot: 15
      page: 2

    14:
      type: item
      item:
        material: JUNGLE_PLANKS
        name: "#04a4fcJungle Planks"
        quantity: 1
      buyPrice: 100
      slot: 16
      page: 2

    15:
      type: item
      item:
        material: BLACKSTONE
        name: "#04a4fcBlackstone"
        quantity: 64
      buyPrice: 4000
      slot: 10
      page: 3

    16:
      type: item
      item:
        material: BASALT
        name: "#04a4fcBasalt"
        quantity: 64
      buyPrice: 3500
      slot: 11
      page: 3

    17:
      type: item
      item:
        material: NETHERRACK
        name: "#04a4fcNetherrack"
        quantity: 64
      buyPrice: 2000
      slot: 12
      page: 3

    18:
      type: item
      item:
        material: SOUL_SOIL
        name: "#04a4fcSoul Soil"
        quantity: 64
      buyPrice: 5000
      slot: 13
      page: 3

    19:
      type: item
      item:
        material: MAGMA_BLOCK
        name: "#04a4fcMagma Block"
        quantity: 64
      buyPrice: 6000
      slot: 14
      page: 3

    20:
      type: item
      item:
        material: LAVA_BUCKET
        name: "#04a4fcLava Bucket"
        quantity: 1
      buyPrice: 10000
      slot: 15
      page: 3

Fix the shopMenuItems entry in config.yml

Change only this line:

YAML
shop: "Blocks"

to:

YAML
shop: "blocks"

Fix the pagination buttons in config.yml

Replace the existing buttons: section with this. Do not add page: values to these buttons; ShopGUI+ handles the page switching automatically.

YAML
buttons:
  goBack:
    item:
      material: RED_STAINED_GLASS_PANE
      amount: 1
      damage: 0
      name: "#fc0404ʙᴀᴄᴋ"
      lore:
        - "&fClick to return"
    slot: 18

  previousPage:
    item:
      material: ARROW
      amount: 1
      name: "&e&lPrevious page"
    slot: 22

  nextPage:
    item:
      material: ARROW
      amount: 1
      name: "&e&lNext page"
    slot: 26

Also change the bottom of config.yml from:

YAML
INVENTORY GUI:
  clickCooldown: 0

to:

YAML
gui:
  clickCooldown: 0

The final file locations should be:

Plain Text
/plugins/ShopGUIPlus/config.yml
/plugins/ShopGUIPlus/shops/blocks.yml

Perform a full server restart after replacing the files.

boltzz0

is it possible to make it so players can move items while in the /shop inventory

Kodari AI
KodariAug 10 at 5:41 am 1
ShopMoveItems
ShopMoveItems is a Minecraft plugin that enhances the /shop inventory interface by allowing players to freely move items within the shop GUI. The plugin modifies the default shop menu behavior, enabling drag-and-drop and shift-click item movement between slots while browsing shop stock. This functionality improves inventory management and organization during shopping sessions, making it easier for players to arrange their purchases before checkout. The plugin integrates seamlessly with existing shop systems, preserving all standard shop features while adding the flexible item movement capability players expect from a modern shop interface.

Yes. A shop plugin can allow players to move items while its /shop inventory is open by selectively permitting inventory clicks instead of cancelling every InventoryClickEvent.

Which platform should this target—Paper/Spigot, Bukkit, or another server/plugin system? Also, should players be able to move:

  • Their own items into the shop inventory?

  • Shop items into their inventory?

  • Both directions?

  • Shift-click, hotbar swaps, dragging, and double-click collection?

boltzz0

make it in the config

Kodari AI
KodariAug 10 at 5:41 am 1
MinecraftConfigPlugin
A Minecraft Bukkit/Spigot plugin that reads configuration from a YAML config file. The plugin loads settings such as enabled status, server name, player limits, and welcome messages from config.yml. It provides commands to reload the configuration dynamically and displays configurable messages to players on join. Features include automatic config generation on first run, validation of config values, and fallback defaults if entries are missing or malformed. The plugin demonstrates proper config management with save, load, and reload functionality, making it easy for server administrators to customize behavior without code changes.

Which shop plugin is this for? The configuration key is plugin-specific, so I need the plugin name and version before creating the config.

boltzz0

shopgui+ like make an addon because i want it in the config so it applies to all shop categories and the whole shop

Kodari AI
KodariAug 10 at 5:42 am 1
ShopGUIUniversalAddon
Creates a ShopGUI+ addon that applies universal settings across all shop categories and the entire shop interface. The addon reads configuration options from a central config file, allowing server administrators to define global behaviors, formatting, and restrictions that automatically apply to every shop category without individual per-category setup. Features include configurable item display settings, purchase limits, price formatting, permission requirements, and UI customization that uniformly affect all shops. The addon integrates seamlessly with ShopGUI+ hooks, ensuring consistent shop experiences across the server while reducing administrative overhead through centralized configuration management.

Created a ShopGUI+ addon where the behavior is controlled by configuration and applies to every /shop category.

Place the built plugin in plugins/, then edit:

plugins/ShopGUIPlusMove/config.yml

The addon allows normal clicks, dragging, and hotbar swaps in the player’s inventory while keeping the ShopGUI+ shop/category contents protected. Shift-click and double-click collection remain disabled by default to prevent items from being moved into or taken from the shop menu.

boltzz0

what do i do now

Kodari AI
KodariAug 10 at 5:44 am 1
  1. Build the addon into a .jar:

    Shell
    gradle build
    

    The file will be in:

    Plain Text
    build/libs/ShopGUIPlusMove-1.0.0.jar
    
  2. Copy the .jar into your server’s:

    Plain Text
    plugins/
    
  3. Make sure ShopGUIPlus is also installed.

  4. Start or restart the server. The addon will create:

    Plain Text
    plugins/ShopGUIPlusMove/config.yml
    
  5. In that config, use these settings:

    YAML
    enabled: true
    
    require-permission: false
    
    movement:
      allow-player-inventory-clicks: true
      allow-dragging: true
      allow-hotbar-swaps: true
      allow-shift-clicks: false
      allow-double-click-collection: false
    

This allows players to rearrange and move items in their own inventory while /shop is open, across all ShopGUI+ categories.

Leave allow-shift-clicks and allow-double-click-collection set to false so players cannot accidentally move items into or take items from the shop menu.

After changing the config, restart the server because this addon does not currently include a reload command.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
5 292
src/main/java/com/kodari/shopguiplusmove/ShopGuiPlusMoveAddon.java
package com.kodari.shopguiplusmove;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;

import org.bukkit.entity.HumanEntity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.ClickType;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryDragEvent;
import org.bukkit.event.inventory.InventoryOpenEvent;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.inventory.InventoryView;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitTask;

public final class ShopGuiPlusMoveAddon extends JavaPlugin implements Listener {

    private final Set<UUID> shopSessions = ConcurrentHashMap.newKeySet();
    private final Map<UUID, BukkitTask> pendingCloseTasks = new ConcurrentHashMap<>();
    private List<Pattern> inventoryTitlePatterns = List.of();

    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadTitlePatterns();
        getServer().getPluginManager().registerEvents(this, this);
    }

    private void loadTitlePatterns() {
        List<Pattern> patterns = new ArrayList<>();

        for (String expression : getConfig().getStringList("shop.inventory-title-patterns")) {
            try {
                patterns.add(Pattern.compile(expression));
            } catch (PatternSyntaxException exception) {
                getLogger().warning("Invalid inventory title pattern: " + expression);
            }
        }

        inventoryTitlePatterns = List.copyOf(patterns);
    }

    @EventHandler(priority = EventPriority.LOW)
    public void onShopCommand(PlayerCommandPreprocessEvent event) {
        if (!getConfig().getBoolean("enabled", true)) {
            return;
        }

        if (!getConfig().getBoolean("shop.track-command-session", true)) {
            return;
        }

        String message = event.getMessage().trim();

        if (!message.startsWith("/") || message.length() <= 1) {
            return;
        }

        String command = message.substring(1).split("\\s+", 2)[0]
                .toLowerCase(Locale.ROOT);

        String configuredCommand = getConfig()
                .getString("shop.command", "shop")
                .toLowerCase(Locale.ROOT)
                .replaceFirst("^/", "");

        if (command.equals(configuredCommand)) {
            UUID playerId = event.getPlayer().getUniqueId();
            shopSessions.add(playerId);
            cancelPendingClose(playerId);
        }
    }

    @EventHandler(priority = EventPriority.MONITOR)
    public void onInventoryOpen(InventoryOpenEvent event) {
        HumanEntity entity = event.getPlayer();

        if (entity instanceof Player player) {
            cancelPendingClose(player.getUniqueId());
        }
    }

    @EventHandler(priority = EventPriority.MONITOR)
    public void onInventoryClose(InventoryCloseEvent event) {
        UUID playerId = event.getPlayer().getUniqueId();

        if (!shopSessions.contains(playerId)) {
            return;
        }

        cancelPendingClose(playerId);

        BukkitTask task = getServer().getScheduler().runTask(this, () -> {
            pendingCloseTasks.remove(playerId);
            shopSessions.remove(playerId);
        });

        pendingCloseTasks.put(playerId, task);
    }

    @EventHandler(priority = EventPriority.HIGHEST)
    public void onInventoryClick(InventoryClickEvent event) {
        if (!(event.getWhoClicked() instanceof Player player)) {
            return;
        }

        if (!isShopInventory(player, event.getView()) || !hasPermission(player)) {
            return;
        }

        int rawSlot = event.getRawSlot();
        int topInventorySize = event.getView().getTopInventory().getSize();

        if (rawSlot < 0 || rawSlot < topInventorySize) {
            return;
        }

        if (event.getClick() == ClickType.NUMBER_KEY) {
            event.setCancelled(!getConfig().getBoolean(
                    "movement.allow-hotbar-swaps", true));
            return;
        }

        if (event.getClick() == ClickType.SHIFT_LEFT
                || event.getClick() == ClickType.SHIFT_RIGHT) {
            event.setCancelled(!getConfig().getBoolean(
                    "movement.allow-shift-clicks", false));
            return;
        }

        if (event.getClick() == ClickType.DOUBLE_CLICK) {
            event.setCancelled(!getConfig().getBoolean(
                    "movement.allow-double-click-collection", false));
            return;
        }

        event.setCancelled(!getConfig().getBoolean(
                "movement.allow-player-inventory-clicks", true));
    }

    @EventHandler(priority = EventPriority.HIGHEST)
    public void onInventoryDrag(InventoryDragEvent event) {
        if (!(event.getWhoClicked() instanceof Player player)) {
            return;
        }

        if (!isShopInventory(player, event.getView()) || !hasPermission(player)) {
            return;
        }

        int topInventorySize = event.getView().getTopInventory().getSize();

        boolean touchesShopInventory = event.getRawSlots().stream()
                .anyMatch(slot -> slot < topInventorySize);

        if (touchesShopInventory) {
            event.setCancelled(true);
            return;
        }

        boolean allowDragging = getConfig().getBoolean(
                "movement.allow-dragging", true);

        boolean allowPlayerInventory = getConfig().getBoolean(
                "movement.allow-player-inventory-clicks", true);

        event.setCancelled(!allowDragging || !allowPlayerInventory);
    }

    @EventHandler
    public void onPlayerQuit(PlayerQuitEvent event) {
        UUID playerId = event.getPlayer().getUniqueId();
        shopSessions.remove(playerId);
        cancelPendingClose(playerId);
    }

    private boolean isShopInventory(Player player, InventoryView view) {
        if (!getConfig().getBoolean("enabled", true)) {
            return false;
        }

        if (getConfig().getBoolean("shop.all-categories", true)
                && getConfig().getBoolean("shop.track-command-session", true)
                && shopSessions.contains(player.getUniqueId())) {
            return true;
        }