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

made admins able to bypass AllowChangingPlayerName, AllowSkins and AllowCapes #46

Merged
merged 1 commit into from
Dec 30, 2023

Conversation

Fridtjof-DE
Copy link
Contributor

@Fridtjof-DE Fridtjof-DE commented Dec 29, 2023

Closes #45

I made admins able to bypass AllowChangingPlayerName, AllowSkins and AllowCapes.

I've never used Go before, but it all seems to work as intended.

EDIT:
This has also solved an existing problem, which was that admins could not change the cape of others even if AllowCapes was set to true because user was specified in the cape method instead of profileUser

@evan-goode
Copy link
Member

Thanks, great! I'll keep #45 open to remind myself to write a test for this. The tests are kinda messy.

@evan-goode evan-goode merged commit db66a01 into unmojang:master Dec 30, 2023
5 checks passed
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.

Admins should bypass Allow* settings
2 participants