Skip to content

A Little Spring Cleaning#418

Merged
TheFlagCourier merged 13 commits intomainfrom
chore/spring_cleaning
Jan 27, 2026
Merged

A Little Spring Cleaning#418
TheFlagCourier merged 13 commits intomainfrom
chore/spring_cleaning

Conversation

@TheFlagCourier
Copy link
Copy Markdown
Member

Brief Description:

Several small changes that focus on cleaning up a bit.


Changes:

  • Updated CHANGELOG.md
  • Improved some logging calls
  • Removed redundant "ifCancelled" check in FlagWarCustomListener
  • Fixed various grammar / spelling mistakes (Some ignored due to regional spelling differences.)
  • Changed access modifiers, returning copies where appropriate.
  • Update language files with missing keys (and removing one).
  • Some boolean methods were always inverted, adjusted callers to not do this.
  • Suppress SpotBugs warnings where the result is either intentional, false-positive, or affected by an upstream that wasn't properly annotated.

Relevant FlagWar Issue tickets:

N/A


  • I have tested this pull request for defects on a server.

By making this pull request, I represent that I have read and agree to release my own changes that I
have submitted under the terms of the accompanying license (Apache-2.0). I guarantee that these
changes are mine and are not encumbered by any other license or restriction to the best of my
knowledge.

There are some instances where spelling is regional. These have been ignored.
Sending these error messages through TownyMessaging may slightly obfuscate the source - and we're fully capable of passing the exception to the JUL logger.
Explicitly catch InvalidConfigurationException, rather than the general all-encompassing Exception class.

Also rolls the stacktrace into the JUL logger.

The Towny null check in checkTowny() was removed, as it *should* never evaluate to null. The translation key has also been removed.
@TheFlagCourier TheFlagCourier requested a review from LlmDl January 27, 2026 05:36
@TheFlagCourier TheFlagCourier added documentation Improvements or additions to documentation i18n Deals with translations or translatable strings. java labels Jan 27, 2026
return true;
}

@SuppressWarnings("unused")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this show as unused in your IDE?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It flags it for the args parameter, not so much for the method itself.

@TheFlagCourier TheFlagCourier merged commit d11dae7 into main Jan 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation i18n Deals with translations or translatable strings.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants