-
-
Notifications
You must be signed in to change notification settings - Fork 21
Description
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: trueHow 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
3 - Remove the permission
Remove eternaltags.tag.atrapalhada permission. The player will lose his tag.


4 - Check the category menu
Use /tags categories and go to the tag's category. Here it is:

For some reason, now there is ALL tags from that category.
5 - Select any tag that you don't have

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:

7 - Check results
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.


