TownyAdvanced / FlagWar

The original war system for Towny, now with it's own repository. Celebrating over Ten Years of warfare.
https://townyadvanced.github.io/flagwar.html
Apache License 2.0
21 stars 11 forks source link

Interactions are not prevented at all when under attack #266

Open Parthodys opened 1 year ago

Parthodys commented 1 year ago

Interactions are no longer prevented under the prevent_interaction_while_flagged: config setting. It seems to have broken at some point, as towns/nations are now able to withdraw money even during a flagwar attack. I assume other commands that are meant to be prevented are not prevented either then.

What steps will reproduce the problem?

  1. Start a flagwar
  2. Defender executes /t withdraw 100
  3. Money is successfully withdrawn from town

What is the expected output?

  1. Start a flagwar
  2. Defender executes /t withdraw 100
  3. Prevent the action under an active flagwar; You cannot do that! You were recently attacked and are under high alert!

What is your Towny version number?

0.99.0.4

What is your FlagWar version number?

0.5.3

What is your Spigot/Paper/Fork server version?

Paper-81 (MC: 1.19)

Please use a pastebin service to link the following files:

https://pastebin.com/YRmkfha4

Parthodys commented 1 year ago

@TheFlagCourier Any chance to look at this one?

TheFlagCourier commented 1 year ago

Thanks for the report, I'll look into it as I am able.