Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 146
    • Issues 146
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #326

Closed
Open
Created Feb 13, 2021 by Honnisha@honnisha

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

latest.log

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.

Edited Feb 13, 2021 by Honnisha
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking