TownyAdvanced / SiegeWar

A war plugin for Towny.
https://townyadvanced.github.io/
Other
59 stars 38 forks source link

Add Option to force players to either Plunder or Invade a Town #927

Closed ouckah closed 2 weeks ago

ouckah commented 2 months ago

Description:

This pull request aims to add an option to force players to either plunder or invade a nation. This is due to a possible exploit to plunder a nation and then invade them and tax them tons.


New Nodes/Commands/ConfigOptions:

New Config Option: war.siege.switches.only_one_action_enabled
  - Default: false
  - If true, players can only either invade or plunder a town, not both.
  - If false, players can perform both actions.

Relevant Issue ticket:

Closes #922


By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the SiegeWar License for perpetuity.

ouckah commented 2 months ago

@LlmDl added, are there any other config files that have to be updated?

ouckah commented 2 months ago

Tested and it's good to go! Thank you @LlmDl!