Open
Conversation
CodedSakura
reviewed
Sep 23, 2023
| return data; | ||
| } else { | ||
| return data.stream() | ||
| .filter(warp -> Permissions.check(player, String.format("blossom.warps.warp.to.%s",warp.name), false)) |
Contributor
There was a problem hiding this comment.
doesn't this contradict what you wrote in the readme? as this would default to false if FPAPI is loaded, right?
Contributor
|
overall looks alright! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 settingblossom.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".