#DeluxeMenus Refresh Problem - Fixed

1 messages · Page 1 of 1 (latest)

novel verge
#

Hello, I am create the reward menu using the luckyperms time placeholder in the deluxemenu plugin, but sometimes there is a problem in refreshing the menu when the reward is received and the player can receive the reward 2 times in a row. How can I fix this?

      - "[console] lp user %player_name% permission settemp weeklyrewards.cooldown.1 true 604800s"
      - "[refresh]"
      - "[console] give %player_name% iron_ingot 16"
      - "[console] give %player_name% gold_ingot 12"
      - "[console] give %player_name% diamond 4"
      - "[sound] ENTITY_FIREWORK_ROCKET_LAUNCH 0.8 1.3"```
#

I also change the refresh location but it doesn't work.

novel verge
#

DeluxeMenus Refresh

molten ore
#

had this same issue when i wanted to use deluxemenus gui instead of the plugin gui

#

for me it happened when you autoclicked the gui

#

like 30-50 clicks per second and you'd get multiple rewards

novel verge
#

Yes, I don't know how to solve it because there are other things I do, not just the reward menu.

molten ore
#

I don't know

#

You might be able to find a workaround with the plugin "mycommand"

#

I generally use that when there are some issues with commands on another plugin and just do the commands with that

novel verge
#

DeluxeMenus Refresh Problem

novel verge
#

Is there anyone who can help?

sacred hull
novel verge
#

I fixed the bug by adding view_requirement for all priority elements and
then adding click_requirement to the element that authorizes the player so that
it doesn't get clicked if there is authorization granted to the player, for example
has_perm1:
type: "!has permission"
permission: rewads.click.1
In this way, I prevented the error by ensuring that the player could not click even if there was a problem with the menu refresh.