Fixed the plugin not working as intended if the SiegeWar plugin wasn't on the server.
IMPORTANT:
If you are using your own language file, make sure to check for updates, you can find the updated language file here.
Make sure to update the config file as well, just in case it doesn't update correctly, you can find the updated config file here.
NOTE FOR DEVELOPERS:
I ended up moving the SiegeWar-related events to another class called TownyWildSiegeWarEventListener which prevents the plugin from not working if the SiegeWar plugin isn't on the server, the event is registered in the SiegeWar plugin check in the main class.
Fixed protection_after_exiting_town_border and bossbar_enabled not working as intended.
Fixed the description message of /twp toggle.
Fixed a bug that caused non-disappearing boss bars when players deleted their town and made a new one while the countdown was running.
ADDITIONS:
Added Siege War support, when a town is getting attacked, the defenders will automatically get protection and all of the attacking town's residents will get their protection turned off (this setting is turned on by default but can be turned off).
Added a new config setting called siege_war_start_protection which gives protection to every resident in a defender's town when having an ongoing siege war.
IMPORTANT:
If you are using your own language file, make sure to check for updates, you can find the updated language file here.
Make sure to update the config file as well, just in case it doesn't update correctly, you can find the updated config file here.
Added a new toggle command (/twp toggle) to allow players to toggle off and on their PvP protection when exiting a town, you can give them the townywild.toggle permission to let them toggle their PvP protection.
IMPORTANT:
If you are using your own language file, make sure to update it, you can find the updated language file here.