Closed ghost closed 3 years ago
If the GUI errors while trying to open search using the item in the menu on 1.17 I'd much rather fix that than have two separate permissions. I haven't gotten around to testing it on newer versions though, can you paste the error?
The error is on AnvilGUI, it does not support 1.17. I opened a new issue for it, but I think it's out of your hands until they update: https://github.com/TheSilentPro/HeadDB/issues/11
I have added a commit to this PR in order to use the existing headdb.search permission, and will instead keep a separate branch in my personal repository for 1.17 until AnvilGUI is updated.
This is a small change, because I very much dislike players seeing the options for Favorites, Search and Local only to be rejected because they don't have the permission.
The Search UI option uses a new permission, headdb.searchui in order to keep the /hdb search command in servers where the UI errors out. This is the case in my Paper 1.17 server, where /hdb search works fine, but clicking on the Search UI item results in an error.