#Lags when autoclicking on an icon

1 messages · Page 1 of 1 (latest)

past summit
#

Hello, I have a performance issue in deluxemenus. The problem is that when a player starts using autoclicker with a 1mc delay when clicking on a menu (or just clicking fast), the server MSPT increases and TPS decreases. The problem is taking over a few menus, I added an item code that also gives lags.
Spark profiler: https://spark.lucko.me/naa5nTLTJo

    slot: 11
    priority: 0
    material: wooden_hoe
    display_name: '[lang]server_menu_merchant_2[/lang]'
    hide_attributes: true
    lore:
    - ''
    - '&#ffa550• &f[lang]server_menu_merchant_3[/lang]'
    - '&#ffa550• &f[lang]server_menu_merchant_4[/lang]'
    - ''
    - '&#ffa550✦ &f[lang]server_menu_merchant_5[/lang]'
    - ''
    click_requirement:
      requirements:
        req1:
          type: javascript
          expression: '%player_current_exp% >= 250'
          deny_commands:
          - '[message]&f[[lang]server_prefixes_shop[/lang]&f]'
          - '[sound] ENTITY_VILLAGER_NO'
        req2:
          type: javascript
          expression: '%player_empty_slots% >= 1'
          deny_commands:
          - '[message]&f[[lang]server_prefixes_shop[/lang]'
    click_commands:
    - '[message] &f[[lang]server_prefixes_shop[/lang]&f] [lang]server_menu_merchant_7[/lang]&f.'
    - '[console] minecraft:give %player_name% minecraft:wooden_hoe 1'
    - '[console] xp take %player_name% 250'
    - '[sound] ENTITY_VILLAGER_YES'
    - '[refresh]'```

spark is a performance profiler for Minecraft clients, servers, and proxies.