Skip to content

All tags bug #46

@leogianfagna

Description

@leogianfagna

There is a bug that shows all the tags in categories menu, if the player loses the permission for the current tag.

YAML configs

default-tag: random
remove-inaccessible-tags: true

How to reproduce

1 - Give a tag permission and use it

Give the tag permission eternaltags.tag.atrapalhada. Apply the tag. For a more realist example, give another tag, in my case I will give eternaltags.tag.membro.

2 - Check the category menu for that tag

Here it is
image

3 - Remove the permission

Remove eternaltags.tag.atrapalhada permission. The player will lose his tag.
image
image

4 - Check the category menu

Use /tags categories and go to the tag's category. Here it is:
image

For some reason, now there is ALL tags from that category.

5 - Select any tag that you don't have

image
I picked up any tag, I don't have permission for it. It's not showing on tab, but it says that I selected it.

6 - Now, select a tag that you have

I gave back my eternaltags.tag.atrapalhada permission and now I will apply that tag. I searched in menu:
image

7 - Check results

The tag is properly applied:
image

And now the menu got fixed:
image

Conclusion

I may be wrong but maybe is something related to getRandomTag() in TagsManager.java. I don't know. I'm using the latest version from Spigot. If you have any idea of the cause, I could try to fix and make a pr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions