Changing player GENERIC_ATTACK_SPEED attribute

Discussion in 'Spigot Plugin Help' started by Nykorrin, Jun 8, 2021.

Thread Status:
Not open for further replies.
  1. So, my server has custom items and unique abilities and one of the unique abilities allows players to disregard the 1.9 attack cooldown and temporarily lets players spam left-click without any damage or knockback reduction just as it would be pre-1.9.

    The issue is in-game it doesn't work for some reason... I can't figure out what I am doing wrong.

    Code (Java):
                                            System.out.println(damager.getAttribute(Attribute.GENERIC_ATTACK_SPEED).getBaseValue() + " ATK SPD"); // debug
                                            System.out.println(damager.getAttribute(Attribute.GENERIC_ATTACK_SPEED).getValue() + " ATK VALUE");
    Edit: For clarification, I am using api-version: 1.13 and am running spigot 1.16.5 on my test server

    I have the server print out the player's base ATK SPD and value ATK SPD as seen in this image:

    While the values seem correct after the debug, in-game, the player still has to follow the attack cooldown :/
    Can someone point me in the right direction here please? :)
Thread Status:
Not open for further replies.