Add /island lock command to toggle island lock state and expel visitors#2858
Add /island lock command to toggle island lock state and expel visitors#2858tastybento merged 4 commits intodevelopfrom
Conversation
Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
|
@copilot Review the SonarCloud issues reported and address them. Also, translate the English into the other locales. |
…r all locales Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Done in commit SonarCloud fixes: Refactored Translations: Added the |
|
@copilot For the translations, you should use [prefix_island] as a placeholder for the game mode's word for "island", which may change depending on the game mode, e.g., area, box, etc. |
…ommand Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Done in commit |
|



Players want a quick
/is lockcommand to lock their island and expel visitors, rather than navigating the/is settingsGUI.Changes
New command:
IslandLockCommandlocksubcommand under the default player island commandLOCKflag betweenVISITOR_RANK(open) andMEMBER_RANK(locked)setConfigurableRankCommand()IslandEvent.Reason.LOCKon togglecanExecute, used inexecute) following the pattern used byIslandSettingsCommandLocale
Added
commands.island.lockstrings (description,locked,unlocked,you-are-locked-out) to all supported locales:en-US(English)cs,de,es,fr,hr,hu,id,it,ja,ko,lv,nl,pl,pt,pt-BR,ro,ru,tr,uk,vi,zh-CN,zh-HKTests
IslandLockCommandTest— 12 tests covering setup,canExecute(no island, low rank, has island, in team), andexecute(lock, unlock, lock with visitors, lock with no-home visitors, members not expelled, null island safety)DefaultPlayerCommandTestsubcommand count (19 → 20)Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.