Notify bypass-lock players when entering a locked island#2869
Merged
tastybento merged 3 commits intodevelopfrom Mar 14, 2026
Merged
Notify bypass-lock players when entering a locked island#2869tastybento merged 3 commits intodevelopfrom
tastybento merged 3 commits intodevelopfrom
Conversation
…th bypass permission Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add message for bypass protect on island entry
Notify bypass-lock players when entering a locked island
Mar 14, 2026
Member
|
@copilot Add translations for the locale that was added. |
Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Contributor
Author
|
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.



Players with
mod.bypasslockpermission were silently allowed into locked islands with no feedback. They now receive a chat notification indicating the island is locked but they have permission to enter.Changes
LockAndBanListener: AddedBYPASS_LOCKtoCheckResultenum alongside anisAllowed()helper (returnstrueforOPENandBYPASS_LOCK).check()now returnsBYPASS_LOCKinstead ofOPENwhen a player bypasses a lock.checkAndNotify()sendsprotection.locked-island-bypassfor that case. All event handlers updated to useisAllowed().en-US.yml: Added locale key:All locale files: Added translations for
protection.locked-island-bypassto all 22 supported language files (cs, de, es, fr, hr, hu, id, it, ja, ko, lv, nl, pl, pt-BR, pt, ro, ru, tr, uk, vi, zh-CN, zh-HK).LockAndBanListenerTest: Updated three tests that previously asserted no notification was sent on bypass — they now assert a notification is sent. Fixed two tests that instantiated barePlayermocks without a world, causing NPE in translation, and corrected stubs that used a specificUsermock which never matchedUser.getInstance(player).Original prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.