Skip to content

Releases: TownyAdvanced/SiegeWar

0.3.2 for Towny 0.96.7.9 +

25 Mar 18:42
177ece3
Compare
Choose a tag to compare
Pre-release

SiegeWar 0.3.2 is a HOTFIX pre-release, to fix two bugs in 0.3.1. If you have already deployed 0.3.1, deploy this release ASAP.

New Features:

  • Town Occupation Refactor, by @Goosius1
    • Town occupation is now less harsh:
      • After a town is invaded, it has 2 nations: 1. Home nation, 2. Occupier nation.
      • Occupied towns remain full members of their home nation, with the exception of the following 3 areas, in which they are counted as part of the occupying nation:
        • bonus plots contributions
        • /n list rankings
        • dynmap town colour
      • This mechanic preserves the /n spawn even if the capital is occupied (important on servers without public t spawns).
    • Peaceful Nations are now possible:
      • Peaceful towns do not move from the home nation.
      • Thus if a nation sets all its towns to peaceful, it is effectively a peaceful nation.
    • Growing an empire by conquest is now easier:
      • Softer occupation means less motivation to revolt.
      • Also towns can no longer escape occupation via /n leave, but instead must first win a Revolt Siege.
    • There now 4 siege types:
      • Conquest - Nation attacks unoccupied town.
      • Liberation - Nation attacks occupied town, to free town from occupation.
      • Revolt - Town revolts against its occupier, to free town from occupation.
      • Suppression - Nation attacks a town it occupies, to suppress rebel activity in the town.

Improvements:

  • Add battle sessions defensive code, by @Goosius1
  • Patch remaining methods to break siege banners bug, by @Warriorrrr

Bug Fixes

  • Fix a bug where a soldier death in a siege zone might not be recognized, by @Goosius1
  • Fix a bug where the population modifier feature was showing an index out of bounds exception, by @LlmDl
  • Fix index out of bounds exception on TownyBuildEvent when placing chest far away from town, by @Goosius1
  • Fix ConcurrentModificationException possible in HudManager, by @LlmDl
  • Fix typo in guide book, by @Warriorrrr
  • Fix Town Merge bug, by @Warriorrrr
  • Fix trap mitigation explosion handling if the Cannons integration is disabled, by @galacticwarrior9
  • Fix bug with explosions bypassing trap mitigation bug, by @Goosius1

Update Guide:

  1. Ensure you have Towny 0.96.7.9
  2. If you are using Dynmap-Towny, ensure you have version 0.85
  3. Stop your server
  4. In your plugins folder, delete the older version of the SiegeWar jar
  5. In your plugins folder, drop in SiegeWar-0.3.2.jar
  6. In your Dynmap-Towny config.yml, add the following in to your town popup definition:

    <br/><span style="font-weight:bold;">Occupier&colon; %occupier%</span>
  7. Start your server

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.3.1 for Towny 0.96.7.9 +

25 Mar 13:27
Compare
Choose a tag to compare
Pre-release

SiegeWar 0.3.1 is a pre-release for 0.4.0.

New Features:

  • Town Occupation Refactor, by @Goosius1
    • Town occupation is now less harsh:
      • After a town is invaded, it has 2 nations: 1. Home nation, 2. Occupier nation.
      • Occupied towns remain full members of their home nation, with the exception of the following 3 areas, in which they are counted as part of the occupying nation:
        • bonus plots contributions
        • /n list rankings
        • dynmap town colour
      • This mechanic preserves the /n spawn even if the capital is occupied (important on servers without public t spawns).
    • Peaceful Nations are now possible:
      • Peaceful towns do not move from the home nation.
      • Thus if a nation sets all its towns to peaceful, it is effectively a peaceful nation.
    • Growing an empire by conquest is now easier:
      • Softer occupation means less motivation to revolt.
      • Also towns can no longer escape occupation via /n leave, but instead must first win a Revolt Siege.
    • There now 4 siege types:
      • Conquest - Nation attacks unoccupied town.
      • Liberation - Nation attacks occupied town, to free town from occupation.
      • Revolt - Town revolts against its occupier, to free town from occupation.
      • Suppression - Nation attacks a town it occupies, to suppress rebel activity in the town.

Improvements:

  • Add battle sessions defensive code, by @Goosius1
  • Patch remaining methods to break siege banners bug, by @Warriorrrr

Bug Fixes

  • Fix index out of bounds exception on TownyBuildEvent when placing chest far away from town, by @Goosius1
  • Fix ConcurrentModificationException possible in HudManager, by @LlmDl
  • Fix typo in guide book, by @Warriorrrr
  • Fix Town Merge bug, by @Warriorrrr
  • Fix trap mitigation explosion handling if the Cannons integration is disabled, by @galacticwarrior9
  • Fix bug with explosions bypassing trap mitigation bug, by @Goosius1

Update Guide:

  1. Ensure you have Towny 0.96.7.9
  2. If you are using Dynmap-Towny, ensure you have version 0.85
  3. Stop your server
  4. In your plugins folder, delete the older version of the SiegeWar jar
  5. In your plugins folder, drop in SiegeWar-0.3.1.jar
  6. In your Dynmap-Towny config.yml, add the following in to your town popup definition:

    <br/><span style="font-weight:bold;">Occupier&colon; %occupier%</span>
  7. Start your server

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.3.0 for Towny 0.96.7.4 +

05 Mar 13:04
0386e74
Compare
Choose a tag to compare

SiegeWar 0.3.0 is Ready for Production release of the SiegeWar plugin

Major Changes

  • Scoring System Update
    • Siege Points are split into two concepts: Siege Balance and Battle Points.
    • Players compete in 50 minute Battles at each Siege, ending on the hour every hour.
    • Banner control and deaths provide Battle Points.
    • The winner of each battle has their Battle Points applied to the Siege Balance (The loser's Battle Points are lost).
    • When the siege ends, the Siege Balance decides the winner (positive for attacker; negative for defender).
  • New Siege Banner Visual Marker
    • The siege banner now emanates a beam of light into the sky using a beacon-type effect.
  • New SiegeWar Safe Mode
    • SiegeWar now deals with startup errors by going into a Safe Mode (providing better error-visibility & data-protection).
  • New Cannons Plugin Integration (default off)
    • Enable this integration to allow for fun exchanges of high-calibre gunfire during battles, while ensuring that town residents still remain fully in control of when in-town explosions are allowed.
  • New AFK-Sieging Mitigation
    • If a team steals banner control from its opponent during a battle,
      it gets an instant boost to its Battle Points, called the Banner Control Reversal Bonus.
    • This bonus is equal to twice the battle points the enemy earned from controlling the banner.
    • Thus, during a battle, if a PVP-weak team with many soldiers runs up a huge number of battle points from banner control, they risk a PVP-stronger opponent turning up near the end of the battle, reversing control, getting a massive battle points boost, certainly winning the battle, and possibly the siege.
    • This AFK mitigation can be amplified (if a server really needs to), by also enabling the counter-attack booster feature and/or increasing battle session durations.
  • New Trap-Warfare Mitigation (default off)
    • If enabled, this feature prevents placing/destroying blocks below the siege banner altitude.
    • Gaining banner control below the siege banner altitude is also prevented.
    • To be used only in combination with a server rule against building traps before placing the banner.

Minor Changes

  • Teleportation Improvement
    • Enderpearls, chorus fruit, and netherportals are no longer disabled in siege-zones.
    • Admin teleportation is no longer disable in siege-zones.
  • Plunder Distribution Improvement
    • Plunder is now gained by allied soldiers (instead of only nation soldiers), and distributed according to contributions at the battle (instead of just rank).
  • Counterattack Booster De-Activation
    • The counterattack booster feature will automatically turn off with this release (it is still available for use, just now disabled by default).
  • New Command
    • /sw version: Shows the current SiegeWar version.

Component Releases & Milestones
Pre-Release 0.2.1
Pre-Release 0.2.2
Pre-Release 0.2.3
Milestone 0.2.1
Milestone 0.2.2
Milestone 0.2.3
Milestone 0.3.0

Update Guide

  1. Stop server
  2. Make sure you have Towny version 0.96.7.4 or newer installed.
  3. In your plugins folder, delete the older version of SiegeWar.jar
  4. In your plugins folder, add SiegeWar-0.3.0.jar
  5. Start server
  6. Make the following updates to townyperms.yml:
    • Replace all instances of siegewar.town.siege.points with siegewar.town.siege.battle.points
    • Replace all instances of siegewar.nation.siege.points with siegewar.nation.siege.battle.points
    • Ensure town mayors have the following permission: siegewar.town.siege.*
    • Ensure nation kings have the following permissions: siegewar.nation.siege.*, siegewar.command.siegewar.nation.*
    • Ensure nation assistants have the following permissions: siegewar.nation.siege.*, siegewar.command.siegewar.nation.*
    • Ensure nation generals have the following permissions: siegewar.nation.siege.*
  7. Make the following update to the Towny config.yml:
    • Set the following config to "true" (to fix a bankruptcy escape exploit) : do_bankrupt_towns_pay_nation_tax
  8. Review the SiegeWar config.yml:
    • Review your points-related settings (Only if you are not using the defaults).
      • If you currently have a massive ratio between timed/death points, you might be trying to reduce AFK sieging.
      • With this release, you no longer need to suffer the side-effects of such a high ratio, as this release contains features which should fully resolve the issue.
      • Defaults (for reference):
        • points_for_attacker_occupation: '10'
        • points_for_defender_occupation: '10'
        • points_for_attacker_death: '150'
        • points_for_defender_death: '150'
    • Review your death-equipment-drop settings (Only if you are not using the defaults).
      • If you currently allow PVP-skilled players to take God-Kits from weaker players on death, you might be partially responding to demands from such players for more rewards during sieges.
      • With this release, you may no longer need to suffer the side-effects of inventory-dropping during war, as players now receive greater rewards during sieges, including hourly global recognition of their battle victories, and also more plunder than ever.
        • Defaults (for reference):
          • keep_inventory_on_siege_death: 'true'
          • degrade_inventory:
            • enabled: 'true'
            • percentage: '20'
  9. Run /ta reload townyperms
  10. Run /ta reload config
  11. Run /swa reload
  12. Thats it, you're good to go.

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.2.3 for Towny 0.96.7.4 +

02 Mar 14:26
d29b0f9
Compare
Choose a tag to compare
Pre-release

SiegeWar 0.2.3 is a hotfix pre-release for 0.3.0.
If you are running 0.2.2, it is recommended to deploy this pre-release ASAP,
as it resolves the problem of hard-to-kill players stealing banner control too easily.

New Features:

  • New command to show system version /sw version, by @Warriorrrr

Improvements:

  • Updated perms terminology to match ingame texts & user guide, by @Goosius1
  • Put banner xyz on a config, by @Goosius1
  • Banner Control Session Pausing if enemy is in timed point zone, by @Goosius1

Bug Fixes

  • Remove glow when battle session ends bug, by @Goosius1
  • Fix Peaceful Ruins Transferring, by @Goosius1
  • Fix town screen presentation of siege balance, by @Goosius1

Update Guide:

  1. Stop server.
  2. In your plugins folder, delete the older version of the SiegeWar jar.
  3. In your plugins folder, drop in SiegeWar-0.2.3.jar.
  4. Restart your server.
  5. In your townyperms.yml, replace any instances of siegewar.town.siege.points, with siegewar.town.siege.battle.points
  6. In your townyperms.yml, replace any instances of siegewar.nation.siege.points, with siegewar.nation.siege.battle.points
  7. Run /ta reload townyperms

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.2.2 for Towny 0.96.7.4 +

27 Feb 22:23
2ecf37b
Compare
Choose a tag to compare
Pre-release

SiegeWar 0.2.2 is a pre-release for 0.3.0, with some very significant features, improvements, & bug fixes.

New Features:

Improvements:

Bug Fixes

  • Fix concurrent modification exception, by @Warriorrrr
  • Fix LP glitch mitigation for current ranks, by @LlmDl
  • Fix bug where peaceful towns are immune to plunder, by @Goosius1

Update Guide:

  1. Stop server.
  2. In your plugins folder, delete the older version of the SiegeWar jar.
  3. In your plugins folder, drop in SiegeWar-0.2.2.jar.
  4. Restart your server.
  5. In your SW config.yml, set war.siege.times.banner_control_session_duration_minutes to 7.
  6. Consider the following updates to the SW config.yml:
    • Re-evaluate your points-related settings (Only if you are not using the defaults).
      • If you currently have a massive ratio between timed/death points, you might be trying to reduce AFK sieging.
      • With this release, you no longer need to suffer the side-affects of such a high ratio, as the release contains features which should fully resolve the issue.
      • Defaults (for reference):
        • points_for_attacker_occupation: '10'
        • points_for_defender_occupation: '10'
        • points_for_attacker_death: '150'
        • points_for_defender_death: '150'
    • Re-evaluate your death-equipment-drop settings (Only if you are not using the defaults).
      • If you currently allow PVP-skilled players to take God-Kits from weaker players on death, you might be partially responding to demands from such players for more rewards during sieges.
      • With this release, you may no longer need to suffer the side-affects of inventory dropping during war, as players now get regular global recognition of their battle victories, and also more plunder than ever.
        • Defaults (for reference):
          • keep_inventory_on_siege_death: 'true'
          • degrade_inventory:
            • enabled: 'true'
            • percentage: '20'
  7. Run /swa reload

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.2.1 for Towny 0.96.7.0 +

21 Feb 21:39
16b889a
Compare
Choose a tag to compare
Pre-release

SiegeWar 0.2.1 is a pre-release for 0.3.0, containing a small number of features, improvements, & bug fixes.

New Features:

Improvements:

  • Nation screen - remove ended sieges, by @Goosius1
  • Some config/townyperms improvements, by @Goosius1

Bug Fixes

Update Guide:

  1. Stop server.
  2. In your plugins folder, delete the older version of the SiegeWar jar.
  3. In your plugins folder, drop in SiegeWar-0.2.1.jar.
  4. Restart your server.
  5. Make the following config/townyperms updates:
    • In townyperms.yml,
      Ensure town mayors have the following permission: siegewar.town.siege.*
      Ensure nation kings have the following permissions: siegewar.nation.siege.*, siegewar.command.siegewar.nation.*
      Ensure nation assistants have the following permissions: siegewar.nation.siege.*, siegewar.command.siegewar.nation.*
      Ensure nation generals have the following permissions: siegewar.nation.siege.*
    • In the Towny config.yml,
      To fix the problem of towns escaping occupation by going bankrupt,
      set the following config to "true": do_bankrupt_towns_pay_nation_tax
    • In the SiegeWar config.yml,
      To fix the problem of battles going on overly long,
      set the following config to "20": degrade inventory > percentage
  6. Run ta reload townyperms
  7. Run swa reload

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.2.0 for Towny 0.96.7.0 +

13 Feb 15:13
Compare
Choose a tag to compare

SiegeWar 0.2.0 is Ready for Production release of the SiegeWar plugin

Major Changes

  • In-Game Guidebook
    • Players can now open an in-game guidebook, using /sw guide.
  • Nation War Statistics
    • On the nation screen, players can now view the lifetime war-performance of their nation:
      • Total plunder losses/gains
      • Total towns captured/lost
      • Total enemy nations defeated
  • Soldier Income
    • Individual soldiers now get a share of plunder (default 75%)
    • Kings can now make a military salary payment to soldiers, using /sw nation paysoldiers <amount>.
    • The share each soldier receives from the above sources, depends on their rank.
    • A soldier can collect their income from these sources, using /sw collect.
  • Peaceful Towns
    • Guardian towns now qualify based on town-openness, NOT nation-openness.
    • Guardian towns are no longer disqualified by a recent siege (only by an active one).
    • Peaceful towns with no guardian towns nearby can now join any nation of their choice.

Minor Changes

  • Ranks
    • Generals can now assign soldier ranks.
  • Nation Refund
    • Nation refund is now collected using /sw collect.
  • Teleporting
    • Players can no longer use 3rd party plugins to teleport into siegezones (e.g. sethome).
    • There is now an optional block on teleporting to peaceful towns.
  • Siege costs
    • There is now an optional extra cost for sieging a capital.
  • Visual Effects
    • Battle Icon: When a siege is being contested, by having either someone in a bc session or on the bc list, the siege-icon on the dynmap changes from the fire icon to a crossed-swords 'battle icon'.
    • There is now a visual firework effect when a soldier dies in a siegezone.

Component Releases
0.1.1
0.1.2

Update Guide

  1. Stop server
  2. In plugins folder, delete older version of SiegeWar.jar
  3. In plugins folder, add SiegeWar-0.2.0.jar
  4. Start server
  5. Update townyperms.yml, and configure your nation military ranks as follows:
        private:
            - siegewar.nation.siege.points
            - towny.nation.siege.pay.grade.100
        sergeant:
            - siegewar.nation.siege.points
            - towny.nation.siege.pay.grade.150
        lieutenant:
            - siegewar.nation.siege.points
            - towny.nation.siege.pay.grade.200
        captain:
            - siegewar.nation.siege.points
            - towny.nation.siege.pay.grade.250
        major:
            - siegewar.nation.siege.points
            - towny.nation.siege.pay.grade.300
        colonel:
            - siegewar.nation.siege.points
            - towny.nation.siege.pay.grade.400
        general:
            - siegewar.nation.siege.*
            - towny.nation.siege.pay.grade.500
            - towny.command.nation.rank.private
            - towny.command.nation.rank.sergeant
            - towny.command.nation.rank.lieutenant
            - towny.command.nation.rank.captain
            - towny.command.nation.rank.major
            - towny.command.nation.rank.colonel
  1. Open Towny config.yml and ensure do_bankrupt_towns_pay_nation_tax is set to true (this was missing from install guide)
  2. Run /ta reload townyperms
  3. Run /ta reload config
  4. Thats it, you're good to go.

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.1.2 for Towny 0.96.7.0 +

13 Feb 15:03
Compare
Choose a tag to compare
Pre-release

SiegeWar 0.1.2 is a pre-release for 0.2.0, containing some cool new features, improvements, & bug fixes.

New Features:

Improvements:

  • Found configuration to allow Generals to assign soldier ranks, by @Warriorrrr
  • Prevent usage of other plugins to teleport into siegezones, by @Warriorrrr

Bug Fixes

  • Fix NPE when invading a town with plot group, by @Warriorrrr
  • Fix issue where abandoned sieges were still showing on dynmap, by @Goosius1
  • Fix nation deletion listener using PreDeleteNationEvent. bug, by @LlmDl
  • Take into account that some times the nation delete event can not return a proper king when being removed via safemode prevention. enhancement, by @LlmDl
  • Replace TownySettings.isUsingEconomy() with TownyEconomyHandler.isActive(), by @LlmDl

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.1.1 for Towny 0.96.7.0 +

05 Feb 12:13
Compare
Choose a tag to compare
Pre-release

SiegeWar 0.1.1 is a pre-release for SiegeWar 0.2.0, containing some cool new features & a few minor improvements/bug fixes.

New Features:

Improvements:

  • Stop nations from removing nations they're sieging as enemies, by @Warriorrrr

Bug Fixes

  • Fix resident nation-refund-amount not being set properly all of the time, by @Warriorrrr
  • Fix incorrect time showing in the hud for ended sieges, by @LlmDl
  • Add more "unstable" blocks which the banner can't be placed on, by @Warriorrrr

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below:

0.1.0 for Towny 0.96.7.0 +

31 Jan 14:27
47e98bb
Compare
Choose a tag to compare

SiegeWar 0.1.0 is focused mainly on improvements and bug fixes.

⚠️ IMPORTANT: If you are using plugin version 0.0.7, deploy this release ASAP, as it fixes an explosions-enabled-in-towns bug.⚠️

New Features:

Improvements:

Bug Fixes

Installation Guide

Wiki

⏬ Download available as a .jar file in the Assets section below: