Item restrictions not working
Summary
Repeat ticket MMOItems-0792:
Hi all. I found bug when a player does not meet the requirements for the staff, they can still use it without cooldown with full damage
The error is shown in the action message If player met conditions (class and level) only one attack occurs in 1.5-2 seconds
staff.yml: https://pastebin.com/K4hJ85zD
mi version MMOItems-6.5.2-SNAPSHOT.jar 623 build, but it was before update Server version (tested in purpur and ytopia)
Steps to reproduce
Use any item that does not meet the requirements
Current behavior
If you use an item that does not fit the class or character's attributes, you can still use the item without cooldown. If all the conditions are right, then cooldown works.
Usage staff to a higher level of requirements with no delay: https://www.dropbox.com/s/gm8jrx7swn38qkz/GIF%2007.02.2021%2012-30-35.gif.mp4?dl=0
How item works if conditions are met: https://www.dropbox.com/s/msv2vrwani1key5/GIF%2007.02.2021%2012-33-54.gif?raw=1
Intended correct behavior
Items cannot be used if the characteristics do not fit.
Server log file
Debug log snippet
Nothing is displayed in the console when using items when the bug occurs.
Proposed fixes
Describe what you think the issue or any potential fixes may be.