unmojang / drasl

Yggdrasil-compatible API server for Minecraft
GNU General Public License v3.0
69 stars 11 forks source link

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

Closed Fridtjof-DE closed 6 months ago

Fridtjof-DE commented 6 months ago

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 commented 6 months ago

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