diff --git a/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java b/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java index c39fcdb..5a12b7c 100644 --- a/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java +++ b/src/main/java/com/extendedclip/deluxemenus/menu/MenuItem.java @@ -65,7 +65,7 @@ public ItemStack getItemStack(@NotNull final MenuHolder holder) { // Some of the methods are marked as @NotNull, and in theory that means they return an item with material STONE if (playerItem == null) { - return new ItemStack(Material.STONE, amount); + return new ItemStack(Material.AIR, amount); } itemStack = playerItem.clone(); diff --git a/src/main/resources/advanced_menu.yml b/src/main/resources/advanced_menu.yml index 5f0e484..db728f5 100644 --- a/src/main/resources/advanced_menu.yml +++ b/src/main/resources/advanced_menu.yml @@ -1,118 +1,387 @@ -# A DeluxeMenus advanced configuration guide -#========================================================= -menu_title: '&8> &6&lD&eM &bAdvanced Example' -open_command: - - advancedmenu - - advancedexamplemenu - - themostadvancedmenuintheworld -open_commands: - - '[sound] BLOCK_BEACON_ACTIVATE' - - '[message] &7Opening Advanced example menu, Plugin created by &bextended_clip&7!' -size: 27 -# as always, only cool people can open this menu :) -open_requirement: - requirements: - permission: - type: has permission - permission: deluxemenus.admin - deny_commands: - - "[message] &8[&bDeluxe&eMenus&8] &cYou don't have perms for this!" +# An Advanced Deluxemenus confiruation made by @kristophergeou +# +# This menu requires the following expansions: +# player, luckperms, vault, changeoutput, statistic, math +# +# Plugins: https://www.spigotmc.org/resources/%E2%9A%A1-master-cooldowns-placeholder-cooldowns-1-8-1-19-%E2%9A%A1.72145/ +############################################################## +menu_title: '&7Advanced Menu' +open_command: # This is the command that will open this menu +- dmadvancedmenu +register_command: true # Optional: Register the command (/dmadvancedmenu) on your server. Requires server restart. +open_commands: # These actions will be executed once you open this menu +- '[sound] BLOCK_CHEST_OPEN' # The sound list can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html +- '[message] &6&lDeluxe&emenus &8» &7Opening Advanced example menu, Plugin created by &eextended_clip&7.' +inventory_type: CHEST # Optional: Change the inventory type of your menu, No need to add this to your config if you use CHEST. +update_interval: 1 # This option will update every items that have update: true, every 1 second +open_requirement: # Optional: Use the Open Requirement setting to limit the access of the users that have access to this menu. + requirements: # If you want everyone to have access to the menu, open_requirement arent needed. + user_op: + type: string equals # This setting checks if the input matches the output value + input: '%player_is_op%' # This placeholder checks if the user is op + output: 'yes' # If the user is op "yes" this menu will open, otherwise "no" the deny_command will run + deny_commands: + - '[message] &6&lDeluxe&emenus &8» &7Only Operators can open this menu.' # Deny commands will be executed when the requirement isn't met +size: 27 # Set the inventory size of your menu. The values will round up/down to the closest number of the multiplies of 9. items: - 'example': - material: LIME_DYE - slot: 11 +############################################# +# Example: Purchase an item (with cooldown) +############################################# + +# First +# Method: Money +# Type: Permission Based + +# Start - Permission Based ( Temp Permissions from luckperms ) + 'redstone_can_claim': + material: redstone + slot: 10 priority: 1 - update: true - hide_attributes: true - display_name: '&bExample Kit' + view_requirement: + requirements: + no_cooldown: + type: "!has permission" #This checks if the user doesnt have the permission + permission: 'item.1.cooldown' #If the user has this permission, they wont be able to view this item + display_name: '&c&lRedstone' + lore: + - '' + - '&c&lInformation:' + - '&c• &7You can purchase this item every 24h ' + - '' + - '&c• &7Costs: &a1000 $' + - '&c• &7Balance: %changeoutput_>=_input:{vault_eco_balance}_matcher:1000_ifmatch:&a_else:&c%%vault_eco_balance% $' # This will turn the balance of the user green if has 1000+ $ otherwise it will be red + - '' + - '&cClick to purchase ' + click_requirement: + requirements: + money: + type: '>=' + input: '%vault_eco_balance%' + output: 1000 + deny_commands: + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough money' + - '[sound] BLOCK_NOTE_BLOCK_BASS' + click_commands: + - '[takemoney] 1000' + - '[message] &6&lDeluxe&emenus &8» &7Purchased item &aRedstone' + - '[sound] ENTITY_ITEM_PICKUP' + - '[console] give %player_name% redstone' + - '[console] lp user %player_name% permission settemp item.1.cooldown true 24h' # This will set the item on cooldown for 24hours + - '[refresh]' # This will refresh the menu so the cooldown item appears + + 'redstone_cant_claim': + material: barrier + slot: 10 + priority: 2 + update: true # This will update the placeholder in the lore + display_name: '&c&lCooldown' lore: - - '' - - '&7Cooldown : &f3 Days' - - '&7Left Click to Redeem' - view_requirement: + - '' + - '&c&lInformation:' + - '&c• &7You can purchase this item every 24h ' + - '' + - '&c• &7Cooldown: &c%luckperms_expiry_time_item.1.cooldown%' + click_requirement: + requirements: + no_cooldown: + type: "has permission" + permission: 'item.1.cooldown' + success_commands: # This is a nice way to prevent some of the actions, when the user has the menu opened and the cooldown is done + - '[sound] BLOCK_NOTE_BLOCK_BASS' + - '[message] &6&lDeluxe&emenus &8» &7Try again in &c%luckperms_expiry_time_item.1.cooldown%' + click_commands: + - '[refresh]' +# End - Permission Based ( Temp Permissions from luckperms ) + +# Second +# Method: XP +# Type: MasterCooldowns + +# Start - Cooldown ( Mastercooldowns ) + 'diamond_can_claim': + material: diamond + slot: 11 + priority: 1 + view_requirement: requirements: - kit_requirement: + cooldown: type: string equals - input: '%essentials_kit_is_available_example%' - output: 'yes' - kit_perm: - type: has permission - permission: essentials.kits.example - left_click_commands: - - '[player] kit example' - - '[close]' - 'examplecd': - material: GRAY_DYE + input: '%mcd_isinactive_diamondclaim%' + output: 'No' + display_name: '&b&lDiamond' + lore: + - '' + - '&b&lInformation:' + - '&b• &7You can purchase this item every 12h ' + - '' + - '&b• &7Costs: &a10xp ' + - '&b• &7Balance: %changeoutput_>=_input:{player_level}_matcher:10_ifmatch:&a_else:&c%%player_level% $' # This will turn the balance of the user green if has 10+ xp levels otherwise it will be red + - '' + - '&bClick to purchase ' + click_requirement: + requirements: + money: + type: '>=' + input: '%player_level%' + output: 10 + deny_commands: + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough xp levels' + - '[sound] BLOCK_NOTE_BLOCK_BASS' + click_commands: + - '[console] xp take %player_name% 10l' + - '[message] &6&lDeluxe&emenus &8» &7Purchased item &aDiamond' + - '[console] give %player_name% diamond' + - '[sound] ENTITY_ITEM_PICKUP' + - '[console] mcd add %player_name% diamondclaim 864000' # This will set the item on cooldown for 24hours + - '[refresh]' # This will refresh the menu so the cooldown item appears + + 'diamond_cant_claim': + material: barrier slot: 11 priority: 2 - update: true - hide_attributes: true - display_name: '&cExample Kit Unavailable' + update: true # This will update the placeholder in the lore + display_name: '&c&lCooldown' lore: - - '&7This kit is on cooldown!' - - '&7You must wait : &f%essentials_kit_time_until_available_example%' - - '&7Before using this kit again.' - view_requirement: - requirements: - kit_perm: - type: has permission - permission: essentials.kits.example - 'examplenoperm': - material: GRAY_DYE - slot: 11 - priority: 3 - update: true - hide_attributes: true - display_name: '&7Example Kit' + - '' + - '&c&lInformation:' + - '&c• &7You can purchase this item every 12h ' + - '' + - '&c• &7Cooldown: &c%mcd_left_formatted_diamondclaim%' + click_requirement: + requirements: + no_cooldown: + type: string equals + input: '%mcd_isinactive_diamondclaim%' + output: 'No' + success_commands: # This is a nice way to prevent some of the actions, when the user has the menu opened and the cooldown is done + - '[sound] BLOCK_NOTE_BLOCK_BASS' + - '[message] &6&lDeluxe&emenus &8» &7Try again in &c%mcd_left_formatted_diamondclaim%' + click_commands: + - '[refresh]' +# End - Cooldown ( Mastercooldowns ) + +################################### +# Example: Purchase one time item +################################### + +# First +# Method: Money +# Type: Permission Based + +# Start - Permission Based + 'poppy_claimed': + material: barrier + slot: 12 + priority: 1 + update: true # This will update the placeholder in the lore + display_name: '&c&lPoppy' + view_requirement: + requirements: + purchased: + type: "has permission" #This checks if the user has the permission + permission: 'purchased.poppy' #If the user has this permission, they will view this item lore: - - '&7You do not have permission for this kit!' - 'shopexample': - material: head-extended_clip + - '' + - '&c&lInformation:' + - '&c• &7Poppy item ' + - '' + - '&c• &cPurchased' + + 'poppy_can_claim': + material: poppy slot: 12 - display_name: '&r' + priority: 2 + display_name: '&c&lPoppy' lore: - - '&7Shop example using' - - '&7view requirements!' - - '&fLeft click to purchase.' + - '' + - '&c&lInformation:' + - '&c• &7Poppy item ' + - '' + - '&c• &7Costs: &a2500 $' + - '&c• &7Balance: %changeoutput_>=_input:{vault_eco_balance}_matcher:2500_ifmatch:&a_else:&c%%vault_eco_balance% $' # This will turn the balance of the user green if has 2500+ $ otherwise it will be red + - '' + - '&cClick to purchase ' + click_requirement: + requirements: + money: + type: '>=' + input: '%vault_eco_balance%' + output: 2500 + deny_commands: + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough money' + - '[sound] BLOCK_NOTE_BLOCK_BASS' + click_commands: + - '[takemoney] 2500' + - '[message] &6&lDeluxe&emenus &8» &7Purchased item &aPoppy' + - '[sound] ENTITY_ITEM_PICKUP' + - '[console] give %player_name% poppy' + - '[console] lp user %player_name% permission set purchased.poppy true' + - '[refresh]' # This will refresh the menu so the claimed item can appear +# End - Permission Based + +# Second +# Method: Money +# Type: Meta Based + +# Start - Meta Based + 'sunflower_claimed': + material: sunflower + slot: 13 priority: 1 - view_requirement: - requirements: - shop_perm: - type: has permission - permission: deluxemenus.shopexample - left_click_commands: - - '[sound] ENTITY_FIREWORK_ROCKET_BLAST' - - '[console] give %player_name% skull 1 player:extended_clip name:&bExtended_Clip lore:&8|&7Example_Shop_Item|&8' - - '[message] &8[&6&lDeluxeShop&8] &fYou have succesfully purchased &7extended_clips &fhead!' - - '[console] eco take %player_name% 666' - - '[close]' - left_click_requirement: - requirements: - balance_check: - type: has money - amount: 666 - 'shopnoperm': - material: head-extended_clip - slot: 12 - display_name: '&7No permission' + update: true # This will update the placeholder in the lore + display_name: '&c&lSunflower' + view_requirement: + requirements: + purchased: + type: string equals + input: '%deluxemenus_meta_PurchasedSunflower_STRING_no%' + output: 'yes' + lore: + - '' + - '&c&lInformation:' + - '&c• &7Sunflower item ' + - '' + - '&c• &cPurchased' + + 'sunflower_claim': + material: sunflower + slot: 13 + priority: 2 + display_name: '&c&lSunflower' + lore: + - '' + - '&c&lInformation:' + - '&c• &7Sunflower item ' + - '' + - '&c• &7Costs: &a2500 $' + - '&c• &7Balance: %changeoutput_>=_input:{vault_eco_balance}_matcher:2500_ifmatch:&a_else:&c%%vault_eco_balance% $' # This will turn the balance of the user green if has 2500+ $ otherwise it will be red + - '' + - '&cClick to purchase ' + click_requirement: + requirements: + money: + type: '>=' + input: '%vault_eco_balance%' + output: 2500 + deny_commands: + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough money' + - '[sound] BLOCK_NOTE_BLOCK_BASS' + click_commands: + - '[takemoney] 2500' + - '[message] &6&lDeluxe&emenus &8» &7Purchased item &aSunflower' + - '[sound] ENTITY_ITEM_PICKUP' + - '[console] give %player_name% sunflower' + - '[meta] set PurchasedSunflower STRING yes' #This will set the meta with id PurchasedSunflower to yes + - '[refresh]' # This will refresh the menu so the claimed item can appear +# End - Meta Based + +################################### +# Example: Item with progress +################################### + +# First +# Method: Progress +# Type: Break 10 Stone + +# Start - Progress + 'goal_achieved': + material: stone + slot: 14 + priority: 1 + display_name: '&c&lStone' + view_requirement: + requirements: + purchased: + type: '>=' + input: '%statistic_mine_block:STONE%' + output: '10' + lore: + - '' + - '&c&lInformation:' + - '&c• &7Mine 10 Stone ' + - '' + - '&c• &cCompleted' + + 'goal_not_achieved': + material: barrier + slot: 14 + priority: 2 + display_name: '&c&lStone' + lore: + - '' + - '&c&lInformation:' + - '&c• &7Mine 10 Stone ' + - '' + - '&c• &7Status: &a%statistic_mine_block:STONE%&7/&c10' + - '' + - '&cIn Progress' + click_commands: + - '[sound] BLOCK_NOTE_BLOCK_BASS' + - '[message] &6&lDeluxe&emenus &8» &7You have to mine &c%math_0_10-{statistic_mine_block:STONE}% &7more stone.' +# Start - End Progress + +# Second +# Method: Double Progress +# Type: Playtime + VIP + +# Start - Progress 2 + 'goal_achieved_2': + material: clock + slot: 15 + priority: 1 + display_name: '&c&lClock' + view_requirement: + requirements: + purchased: + type: '>=' + input: '%statistic_hours_played%' + output: '2' + group: + type: 'string equals' + input: '%vault_group%' + output: 'vip' + lore: + - '' + - '&c&lInformation:' + - '&c• &7Play for 2 hours' + - '&c• &7Be a VIP' + - '' + - '&c• &cCompleted' + + 'goal_not_achieved_2': + material: barrier + slot: 15 + priority: 2 + display_name: '&c&lClock' + lore: + - '' + - '&c&lInformation:' + - '&c• &7Play for 1 hour ' + - '&c• &7Be a VIP' + - '' + - '&c• &7VIP: %changeoutput_equals_input:{vault_group}_matcher:VIP_ifmatch:&ayes_else:&cno% ' + - '&c• &7Playtime: %changeoutput_>=_input:{statistic_hours_played}_matcher:2_ifmatch:&a_else:&c%&7/&c2' + - '' + - '&cIn Progress' + click_commands: + - '[sound] BLOCK_NOTE_BLOCK_BASS' + - '[message] &6&lDeluxe&emenus &8» &7You have to play for &c2H &7and be a &cVIP&7.' +# End - Progress 2 + +# Start - Progress 2 + +# EXTRA + 'skull': + material: head-kristophergeou + slot: 16 + display_name: '&c&lKristophergeou' lore: - - '&8You are missing the &bdeluxemenus.shopexample' - - '&8permission which is required to view the item!' - - '&fLeft click to close the menu.' - left_click_commands: - - '[sound] ENTITY_SNOW_GOLEM_DEATH' - - '[close]' - - '[message] &8[&6&lDeluxeShop&8] &fYou have closed the menu! &7(1 Second message delay!) ' - 'filler_item': - material: GRAY_STAINED_GLASS_PANE - slots: - - 0 - - 1 - - 2 - - 3 - - 4 - - 5 - - 6 - - 7 - - 8 - display_name: ' ' + - '' + - '&c&lInformation:' + - '&c• &7If you need help you can find me on Helpchat!' + + 'glass_black': + material: black_stained_glass_pane + slots: [0-9, 17-26] + display_name: '&eAdvancedMenu' + diff --git a/src/main/resources/basics_menu.yml b/src/main/resources/basics_menu.yml index 70c628c..5e3f7c2 100644 --- a/src/main/resources/basics_menu.yml +++ b/src/main/resources/basics_menu.yml @@ -15,6 +15,7 @@ # - # open_command: basicsmenu +register_command: true # Size # @@ -28,7 +29,7 @@ size: 9 # This is the title of the menu. You can change it with your custom name # Color codes and placeholders are supported # -menu_title: 'Basics Menu' +menu_title: '&8Basics Menu' # Open requirement # @@ -48,7 +49,8 @@ open_requirement: type: has permission permission: deluxemenus.admin deny_commands: - - '[message] &cYou don''t have permission to do that!' + - '[sound] BLOCK_NOTE_BLOCK_BASS' + - '[message] &6&lDeluxe&emenus &8» &7You don''t have permission to open this menu.' # Item section. This is where you can start add items into menu, and add functions into each items that you did. # For depth explanation on the functions, you can check on the note given from config.yml @@ -60,8 +62,6 @@ items: 'teststone': #We will start to create a STONE item, material: STONE - # with a Block data set to 1, so that you can change stone type from STONE to GRANITE. More information about the block data can be checked through each items from Minecraft Wikipedia - data: 1 # Slots that you want to put the item. Starts from 0 slot: 0 # Here we will name this item. You can change this at anytime. PlaceholderAPI & Color codes supported @@ -69,9 +69,15 @@ items: # This is the lore setting. Reference of this same with display_name. # You can create multiple lines of lore like this lore: - - "&aTest1" - - "&cTest2" - - "&eTest3" + - "&aTest1" + - "&cTest2" + - "&eTest3" + # This is the action section. + # You can add multiple actions to be executed when the player clicks on the material + click_commands: + - '[message] &6&lDeluxe&emenus &8» &7You almost broke the special stone!' + - '[sound] BLOCK_STONE_BREAK' + - '[close]' # ============================================================== @@ -83,7 +89,7 @@ items: # PER ITEM PERMISSION AND PRIORITY INFO: # # Per item permissions and priorities are optional. -# High priority = 1, Lowest priority = 2147483647. +# High priority = 0, Lowest priority = 2147483647. # This allows you to show different items for a specific menu slot depending on the highest priority # item permission a player has. This makes your menus very dynamic :) # diff --git a/src/main/resources/default_menu.yml b/src/main/resources/default_menu.yml index 3064c6a..1c0edd0 100644 --- a/src/main/resources/default_menu.yml +++ b/src/main/resources/default_menu.yml @@ -1,5 +1,4 @@ -menu_title: 'Default Menu' -open_command: menu +menu_title: '&8Default Menu' size: 9 open_requirement: requirements: @@ -7,13 +6,14 @@ open_requirement: type: has permission permission: deluxemenus.admin deny_commands: - - '[message] &cYou don''t have permission to do that!' + - '[sound] BLOCK_NOTE_BLOCK_BASS' + - '[message] &6&lDeluxe&emenus &8» &7You don''t have permission to open this menu.' items: 'dirt': material: DIRT slot: 0 'grass': - material: GRASS + material: GRASS_BLOCK slot: 1 'gravel': material: GRAVEL @@ -38,8 +38,6 @@ items: slot: 8 display_name: 'Exit' lore: - - 'click to exit' - left_click_commands: - - '[close]' - right_click_commands: - - '[close]' \ No newline at end of file + - 'click to exit' + click_commands: + - '[close]' \ No newline at end of file diff --git a/src/main/resources/requirements_menu.yml b/src/main/resources/requirements_menu.yml index 621a589..63cc3ae 100644 --- a/src/main/resources/requirements_menu.yml +++ b/src/main/resources/requirements_menu.yml @@ -12,6 +12,7 @@ # menu_title: 'Requirements Menu' open_command: requirementsmenu +register_command: true size: 9 # # as always, only cool people can open this menu :) @@ -28,7 +29,8 @@ open_requirement: type: has permission permission: deluxemenus.shop deny_commands: - - '[message] &cYou don''t have permission to do that!' + - '[sound] BLOCK_NOTE_BLOCK_BASS' + - '[message] &6&lDeluxe&emenus &8» &7You don''t have permission to open this menu.' items: # # Example 1: Shop Item @@ -61,7 +63,7 @@ items: type: has money amount: 100 deny_commands: - - '[message] &cYou don''t have enough money for this!' + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough money for this!' # # Command(s) to execute when left-clicking the item. # Those commands won't be executed when the above requirements aren't met. @@ -72,7 +74,7 @@ items: left_click_commands: - '[console] give %player_name% GOLD_BLOCK 1' - '[takemoney] 100' - - '[message] &aYou bought 1 &6GOLD_BLOCK &afor $100' + - '[message] &6&lDeluxe&emenus &8» &7You bought 1 &6GOLD_BLOCK &7for $100' # # Requirement(s) for right-clicking an item. # @@ -91,7 +93,7 @@ items: material: 'GOLD_BLOCK' amount: 1 deny_commands: - - '[message] &cYou don''t have enough &6GOLD_BLOCK &cto sell! Required: 1' + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough &6GOLD_BLOCK &7to sell! Required: 1' # # Command(s) to execute when right-clicking the item. # Those commands won't be executed when the above requirements aren't met. @@ -102,7 +104,7 @@ items: right_click_commands: - '[console] clear %player_name% GOLD_BLOCK 1' - '[givemoney] 50' - - '[message] &aYou sold 1 &6GOLD_BLOCK &afor $50' + - '[message] &6&lDeluxe&emenus &8» &7You sold 1 &6GOLD_BLOCK &7for $50' # # Requirement(s) when left-clicking an item while holding shift on the keyboard. # @@ -119,7 +121,7 @@ items: type: has money amount: 6400 deny_commands: - - '[message] &cYou don''t have enough money for this!' + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough money for this!' # # Command(s) to execute when left-clicking the item while holding shift. # Those commands won't be executed when the above requirements aren't met. @@ -130,7 +132,7 @@ items: shift_left_click_commands: - '[console] give %player_name% GOLD_BLOCK 64' - '[takemoney] 6400' - - '[message] &aYou bought 64 &6GOLD_BLOCK &afor $6400' + - '[message] &6&lDeluxe&emenus &8» &7You bought 64 &6GOLD_BLOCK &7for $6400' # # Requirement(s) when right-clicking an item while holding shift on the keyboard. # @@ -150,7 +152,7 @@ items: material: GOLD_BLOCK amount: 64 deny_commands: - - '[message] &cYou don''t have enough &6GOLD_BLOCK &cto sell! Required: 64' + - '[message] &6&lDeluxe&emenus &8» &7You don''t have enough &6GOLD_BLOCK &7to sell! Required: 64' # # Command(s) to execute when right-clicking the item while holding shift. # Those commands won't be executed when the above requirements aren't met. @@ -161,7 +163,7 @@ items: shift_right_click_commands: - '[console] clear %player_name% GOLD_BLOCK 64' - '[givemoney] 3200' - - '[message] &aYou sold 64 &6GOLD_BLOCK &afor $3200' + - '[message] &6&lDeluxe&emenus &8» &7You sold 64 &6GOLD_BLOCK &7for $3200' # # Example 2: Free diamonds! # @@ -199,17 +201,10 @@ items: # # We give the item, set the permission with it expiring in 1 day and refresh the GUI to update the item. # - left_click_commands: - - '[console] give %player_name% DIAMOND 1' - - '[console] lp user %player_name% permission settemp deluxemenus.free_diamonds.cooldown true 1d' - - '[refresh]' - # - # We give the item, set the permission with it expiring in 1 day and refresh the GUI to update the item. - # - right_click_commands: - - '[console] give %player_name% DIAMOND 1' - - '[console] lp user %player_name% permission settemp deluxemenus.free_diamonds.cooldown true 1d' - - '[refresh]' + click_commands: + - '[console] give %player_name% DIAMOND 1' + - '[console] lp user %player_name% permission settemp deluxemenus.free_diamonds.cooldown true 1d' + - '[refresh]' # # Example 3: Placeholder item # @@ -230,12 +225,7 @@ items: # # We refresh the GUI to update the item, if the view_requirement no longer matches. # - left_click_commands: - - '[refresh]' - # - # We refresh the GUI to update the item, if the view_requirement no longer matches. - # - right_click_commands: - - '[refresh]' + click_commands: + - '[refresh]'