fabric-permissions-api icon indicating copy to clipboard operation
fabric-permissions-api copied to clipboard

v0.3.3 didnt work for mc version 1.21.1

Open MahiruIsTaken opened this issue 10 months ago • 2 comments

the server would crash everytime i tried to join into the server with this api on mc version 1.21.1 can you fix it or make v0.3.1 to be label as 1.21.1 on modrith i heard it works fine on ver 1.21.1 but i couldnt try it since it wasnt an option on my server modlist thanks

MahiruIsTaken avatar Jan 23 '25 16:01 MahiruIsTaken

I got the same issue.
https://github.com/lucko/fabric-permissions-api/blob/9d9c79fbf7ebecd4357f7d2ec6b5647e5d79191b/src/main/java/me/lucko/fabric/api/permissions/v0/Util.java#L36
In this method, ServerPlayerEntity#getCommandSource() and Entity#getCommandSource(ServerWorld) was added in 1.21.2, but in 1.21.1 it is Entity#getCommandSource(). We can pass our ServerCommandSource into Permissions#check`, but the FPAPI should publish a version for 1.21.1 also.

qyl27 avatar Feb 26 '25 05:02 qyl27

This also leads to incompatibilities in https://github.com/MiraculixxT/Veinminer/issues/29

chrisheib avatar Apr 16 '25 19:04 chrisheib

I've updated on modrinth, thanks

lucko avatar Jun 18 '25 20:06 lucko