Skip to content

Add per-warp permissions#7

Open
Cucumberrbob wants to merge 1 commit intoBlossomMods:mainfrom
Cucumberrbob:main
Open

Add per-warp permissions#7
Cucumberrbob wants to merge 1 commit intoBlossomMods:mainfrom
Cucumberrbob:main

Conversation

@Cucumberrbob
Copy link

As discussed in discord, this PR implements off-by-default per-warp permissions. There are no breaking changes, and no permissions will need to be changed. If a server admin wants to make use of this feature, they can set the permission for any warp to false with blossom.warps.warp.to.<warp>, or have all warps inaccessible by default, by setting blossom.warps.warp.to.* to false.

Unfortunately, I haven't been able to provide translations for zh_cn or zh_tw. I've opted to use the text for "not-found" as I think it's closest in meaning to "not permitted".

return data;
} else {
return data.stream()
.filter(warp -> Permissions.check(player, String.format("blossom.warps.warp.to.%s",warp.name), false))
Copy link
Contributor

Choose a reason for hiding this comment

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

doesn't this contradict what you wrote in the readme? as this would default to false if FPAPI is loaded, right?

@CodedSakura
Copy link
Contributor

overall looks alright!
i think it might be better to leave the chinese translations alone, they should fall-back to english if i'm not mistaken
also bumping versions would be appreciated!

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