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

Replace command override with mixins #124

Merged
merged 5 commits into from
Oct 23, 2024
Merged

Replace command override with mixins #124

merged 5 commits into from
Oct 23, 2024

Conversation

Lyfts
Copy link
Member

@Lyfts Lyfts commented Oct 22, 2024

Replaces the incredibly janky command override system with 2 very simple mixins, this allows command permissions to function like any other permission would rather than being their own separate system.

It should in theory also fix the bukkit incompatibility that command override had, whether the command permissions will work for bukkit servers has not been tested yet but it shouldn't cause them to crash anymore.

Using mixins will also enable us to fix a few previously impossible/cumbersome issues such as
#64
#102
#105 (this one could also be done by overriding the command but that's not a great solution)

None of those potential fixes are included in this pr though.

@Lyfts Lyfts requested a review from a team October 22, 2024 15:44
Copy link
Contributor

@Ethryan Ethryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok,

but know that I don’t have the largest experience in how mixins code works.

… mc classes too early (it wasn't used anyways)

Signed-off-by: Lyfts <[email protected]>
@Lyfts Lyfts merged commit afc2785 into master Oct 23, 2024
1 check passed
@Lyfts Lyfts deleted the mixin branch October 23, 2024 08:36
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