Skip to content

Interactions are not prevented at all when under attack #266

Description

@Parthodys

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions