You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You'll see that most of the changes below start with the word Refactor, this is when code is moved around but the core logic doesn't change. This pre-release is the first batch of refactor commits plus a couple of new things:
Ops and towny admins wont get double-up siege messages spammed at them.
You can now prevent a nation capital from changing hands while either the previous Capital or new Capital are under Siege.
This is defaulted to false, so go look for it in your config and set it to true if you want this sort of thing.
The rest of what you see below makes the code base simpler, and more easy to read for new developers. Consider this a call, if you've can code Java, can make a Pull Request that doesn't alter things unnecessarily, and want to help out SiegeWar: take a browse through the open Issue Tickets and then come into the Towny Discord and start up a chat with me so we can talk about how you might tackle your first SiegeWar pull request.
What's Changed
Refactor on PlaceBlock class to improve readability. by @LlmDl in #627
Refactor TownOccupationController for readability. by @LlmDl in #628
Refactor DestroyBlock for readbility and add Block methods to Siege. by @LlmDl in #629
Refactor InvadeTown for readability. by @LlmDl in #630
Refactor PeacefullySubvertTown for readability. by @LlmDl in #631
Refactor PlunderTown for readability and safety. by @LlmDl in #632
Refactor StartSuppressionSiege for readability. by @LlmDl in #633
Refactor Conquest, Revolt and Liberation SiegeStarters by @LlmDl in #634
Refactor PeacefullyRevolt for readability. by @LlmDl in #635
Unify SiegeCamp starting process from the StartSiege classes into the SiegeController. by @LlmDl in #636
Switch to using Towny's internal configmigrator. by @LlmDl in #637
Refactor adding SiegeType convenience methods to Siege. by @LlmDl in #638
Add option to prevent sieged nations from changing their capital. (Configurable.) by @LlmDl in #644
Prevent double messaging of SiegeWar announcements. by @LlmDl in #643
Refactor the BukkitEventListener and PlayerDeath classes by @LlmDl in #640