Skip to content

Remove Fabric Permissions API - #48

Merged
Ampflower merged 3 commits into
ModFest:26.3from
ekulxam:new-new-permissions
Sep 19, 2026
Merged

Ampflower merged 3 commits into
ModFest:26.3from
ekulxam:new-new-permissions

Conversation

@ekulxam

@ekulxam ekulxam commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

We now use FAPI's Permission API

and hasn't for a while
Replace with the one from Fabric API
@ekulxam
ekulxam changed the base branch from 1.21.7 to 26.3 September 19, 2026 01:46

@Ampflower Ampflower left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Noticed this; minimum level should be 2, not 1.

public static boolean modify(ServerPlayer player, Identifier shardId, Shard shard) {
MinecraftServer server = player.level().getServer();

boolean success = server.isSingleplayer() || Permissions.check(player, ScatteredShardsAPI.MODIFY_SHARD_PERMISSION, PermissionLevel.GAMEMASTERS);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't appear to be equivalent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

On your end it is not, you have moderators GitHub's 'additions' gutter is annoyingly inconsistent.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fun.

I blame git

@Ampflower Ampflower left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me

@Ampflower
Ampflower merged commit 0814b83 into ModFest:26.3 Sep 19, 2026
1 check 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.

2 participants