Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All tags bug #46

Open
leogianfagna opened this issue Jan 10, 2025 · 0 comments
Open

All tags bug #46

leogianfagna opened this issue Jan 10, 2025 · 0 comments

Comments

@leogianfagna
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant