-
Notifications
You must be signed in to change notification settings - Fork 33
Add command to decline vassalization requests #1920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new command /faction declinevassalization that allows factions to decline pending vassalization requests. Currently, vassalization requests persist until accepted, and this feature provides a way to explicitly reject them.
Key Changes
- New command implementation with proper permission checking and relationship management
- Integration with existing faction command system including aliases for US and GB spelling variants
- Localization support for multiple languages (en_US, en_GB, de_DE, fr_FR, pt_BR)
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/main/kotlin/com/dansplugins/factionsystem/command/faction/declinevassalization/MfFactionDeclineVassalizationCommand.kt |
New command implementation that deletes pending VASSAL relationships and sends notifications to both factions |
src/main/kotlin/com/dansplugins/factionsystem/command/faction/MfFactionCommand.kt |
Integration of the new command with aliases and tab completion routing |
src/main/resources/plugin.yml |
Added permission definition and command documentation |
src/main/resources/lang/lang_en_US.properties |
Added English (US) localization strings for all command messages and notifications |
src/main/resources/lang/lang_en_GB.properties |
Added English (GB) localization strings with British spelling (vassalisation) |
src/main/resources/lang/lang_pt_BR.properties |
Added localization entries (currently in English, should be Portuguese) |
src/main/resources/lang/lang_fr_FR.properties |
Added localization entries (currently in English, should be French) |
src/main/resources/lang/lang_de_DE.properties |
Added localization entries (currently in English, should be German) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot address comments |
…uese Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
…uests # Conflicts: # src/main/resources/lang/lang_fr_FR.properties
|
@copilot resolve failing CI check |
Co-authored-by: dmccoystephenson <21204351+dmccoystephenson@users.noreply.github.com>
Fixed the failing CI check in commit d4d2250. The issue was encoding corruption in the French language file that was reintroduced during the merge conflict resolution. The LanguageFileEncodingTest was detecting double-encoded UTF-8 characters (e.g., "é" instead of "é"). All corrupted characters have been fixed and the file now passes the encoding validation tests. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Implementation Summary
What was changed:
MfFactionDeclineVassalizationCommandallows factions to decline vassalization requestsdeclinevassalizationanddeclinevassalisation(British spelling)mf.declinevassalization(default: true, uses swearFealty faction permission)How it works:
/f vassalize B, a VASSAL relationship is created from A to B/f declinevassalization A, which deletes the VASSAL relationshipRecent updates:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.