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

Improved PermissionResolver and added support for LuckPerms #519

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

huanmeng-qwq
Copy link
Contributor

This PR primarily adds permission check support to Fabric. Since Fabric API lacks an API for permission validation, I moved the PermissionResolver to the core module, as it is used by both platforms (Minestom and Fabric). I also added a new litecommands-luckperms module that depends on luckperms-api to implement the PermissionResolver interface, enabling LuckPerms-based permission checks through this module.

The reason for this PR is that I discovered Fabric can only implement hasPermission via Mixin.

@Rollczi
Copy link
Owner

Rollczi commented Feb 16, 2025

Hi, I'm sorry for the delay, I haven't had much time lately, I had to catch up on a lot of things, I'm still wondering in what form we can implement it, but the assumptions are good

@huanmeng-qwq
Copy link
Contributor Author

I guess we should be able to refer to adding dependencies on litecommands-luckperms and luckperms-api like litecommands-adventure-platform does, and then set the PermissionResolver in the platform's settings

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

Successfully merging this pull request may close these issues.

2 participants