Luohuayu / CatServer

高性能和高兼容性的1.12.2/1.16.5/1.18.2版本Forge+Bukkit+Spigot服务端 (A high performance and high compatibility 1.12.2/1.16.5/1.18.2 version Forge+Bukkit+Spigot server)
https://catmc.org
GNU Lesser General Public License v3.0
1.98k stars 211 forks source link

[1.16.5] Catserver breaks/is missing PermissionAPI.hasPermission #596

Closed VOrlando520 closed 2 years ago

VOrlando520 commented 2 years ago

Environment

Minecraft version(1.12.2/1.16.5/1.18.2): 1.16.5 Build version(Get from /version command): b2435f6 1.16.5-R0.1-SNAPSHOT

Describe the bug When using any Pixelmon related sidemod or plugin that makes use PermissionAPI.hasPermission event, they no longer work or able to use any commands

Expected behavior For the command to work or at least output why it isnt working

To Reproduce Would need a pixelmon plugin/sidemod which uses PermissionAPI.hasPermission event

Screenshot/Video https://puu.sh/JhMWH.gif

Kotori0629 commented 2 years ago

Is this command from a mod? You can try giving user minecraft.command.pokenear using Luckperms

VOrlando520 commented 2 years ago

Yeah it is, https://sdcaptain.gitbook.io/sdlibrary/pokenear this one in particular I already have that, plus the permissions he lists in his wiki as well. I contacted him and we tested. It works on other hybrids (arc, mohist, etc) but breaks with catserver

VOrlando520 commented 2 years ago

For reference, this is permissions class of the plugin im talking about. It calls on PermissionAPI and works on other hybrids, something is messed up on cat that is breaking it

Code from pokenear that calls on PermissionAPI https://pastebin.com/pbSKHHtj

Kotori0629 commented 2 years ago

Waiting for the merge, please re-publish an issues if there are still problems