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

Make use of new Town#isAllowedToWar Towny feature. #221

Closed LlmDl closed 1 year ago

LlmDl commented 1 year ago

Brief Description:

Towny added a Town#isAllowedToWar setting that can be used to prevent wars on a per-town basis. This setting has been adopted in EventWar and SiegeWar already.


Changes:

Towny's dependency has been updated to 0.98.6.0, and when a player attempts to place a flag we now also check if the town is allowed to have a war. Two deprecated imports have been replaced with the replacements.


Relevant FlagWar Issue tickets:



By making this pull request, I represent that I have read and agree to release my own changes that I have submitted under the terms of the accompanying license (Apache-2.0). I guarantee that these changes are mine and are not encumbered by any other license or restriction to the best of my knowledge.