Skip to content

Comments

Convert VISITOR_TRIGGER_RAID world setting to RAID_TRIGGER protection flag#2801

Open
tastybento wants to merge 1 commit intodevelopfrom
2797_raid_trigger_protection_flag
Open

Convert VISITOR_TRIGGER_RAID world setting to RAID_TRIGGER protection flag#2801
tastybento wants to merge 1 commit intodevelopfrom
2797_raid_trigger_protection_flag

Conversation

@tastybento
Copy link
Member

Summary

Closes #2797

  • Replaces the boolean VISITOR_TRIGGER_RAID world setting with a new RAID_TRIGGER island protection flag
  • Island owners can now set the minimum rank required to trigger a raid (owner, member, trusted, visitor, etc.) via the island settings panel — defaults to member rank
  • Players below the configured rank have their raid attempt blocked (Bad Omen is not consumed)
  • Removes VisitorsStartingRaidListener and adds the simpler RaidTriggerListener (uses standard checkIsland rank checking)
  • Updates all 23 locale files with the new RAID_TRIGGER key and fresh translations
  • Adds RaidTriggerListenerTest

Test plan

  • Verify that a visitor with Bad Omen on a member-rank island cannot trigger a raid
  • Verify that a member with Bad Omen can trigger a raid
  • Verify the island owner can lower the rank to visitor in the settings panel, after which visitors can also trigger raids
  • Verify the island owner can raise the rank to owner, blocking members from triggering raids
  • Confirm the old VISITOR_TRIGGER_RAID key no longer appears in any locale or flag list
  • Run ./gradlew test — all tests pass

🤖 Generated with Claude Code

… flag (#2797)

Replaces the simple on/off world setting with a per-island rank-based
protection flag. Island owners can now configure the minimum rank
required to trigger a raid (defaults to member rank), giving granular
control over who can trigger raids on their island.

- Remove VisitorsStartingRaidListener and VISITOR_TRIGGER_RAID flag
- Add RaidTriggerListener and RAID_TRIGGER protection flag (ADVANCED mode,
  default rank: MEMBER_RANK)
- Update all 23 locale files with new RAID_TRIGGER key and translations
- Add RaidTriggerListenerTest

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

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.

Raid trigger permission control

1 participant