TownyAdvanced / Towny

Towny Advanced Minecraft plugin for Bukkit/Spigot.
https://townyadvanced.github.io
Other
518 stars 356 forks source link

Event War: World War Conquered Towns Being Left Behind #7441

Closed TylorTurner closed 3 months ago

TylorTurner commented 3 months ago

What steps will reproduce the problem?

image

What is the expected output?

All Towns merged in to one Nation in a World War

Towny version

0.100.2.9

Server version

1.20.4 Purpur

Please use Pastebin.com to link the following files

I sent Warconfig in discord since pastebin found it offensive. https://mclo.gs/AyaKHaT

LlmDl commented 3 months ago

version:
  # This is the current version. Please do not edit.
  version: 0.0.123

# Language to use.
language: en-US.yml

############################################################
# +------------------------------------------------------+ #
# |                 Event War Settings                   | #
# |                                                      | #
# | Miscellaneous war settings here.                     | #
# +------------------------------------------------------+ #
############################################################
war:

  # Number of seconds given to choose your team when a riot or civil war is being launched.
  team_selection_time: '600'

  # When true, EventWar will make players drop their inventory when they die during a war.
  # This setting overrides Towny and other plugins which set allow keep-inventory-on-death.
  # Setting this to false does not mean players will keep their inventories.
  # You can enabled keep-inventory-on-death in Towny's config at the keep_inventory_on_death settings.
  # This setting will also override AngelChest from making graves in warring town land.
  disable_keep_inventory: 'false'

  # This feature requires Towny 0.98.1.10 or newer!
  # When enabled, people who die in a town with an ongoing war, but are not a part of that war,
  # and are killed by someone in that war, will drop their inventory to the ground as punishment for interfering.
  # This setting will also override AngelChest from making graves for third-party players who die in warring town lands.
  drop_inventory_of_3rd_party_actors: 'false'

  # When true, a player who is not part of a war cannot harm/be harmed in a warzone they are not a part of.
  prevent_third_party_pvp_in_warring_towns: 'false'

  # When true, the totem of undying will not work to keep someone alive when they are killed in a town at war.
  disable_totem_of_undying: 'true'

  new_town_immunity:

    # Are new towns protected from wars?
    enabled: 'false'

    # How long are new towns protected from wars? Accepts numbers with s, m, h, d afterwards. ie: 5d = 5 days, 20h = 20 hours.
    immunity_time: 5d

    # When true, new towns will collect war tokens while they are immune from wars.
    do_new_towns_collect_war_tokens: 'false'

  # When true, players cannot join a town while that town has an active war.
  active_war_prevents_joining_town: 'false'

  # When true, mayors cannot join a nation while that nation has an active war.
  active_war_prevents_joining_nation: 'true'

  # When true, players cannot use /t leave while their town has an active war.
  active_war_prevents_leaving_town: 'true'

  # When true, mayors cannot use /n leave while their nation has an active war.
  active_war_prevents_leaving_nation: 'true'

  # When set to true the war beginning and ending messages will be sent to everyone that is online, and not just the people involved in the war.
  war_beginning_and_ending_message_broadcasts_globally: 'true'

  ############################################################
  # +------------------------------------------------------+ #
  # |        Declarations of War & Tokens Settings         | #
  # |                                                      | #
  # | Settings related to Declarations of War and          | # 
  # | War Tokens are here.                                 | #
  # +------------------------------------------------------+ #
  ############################################################
  tokens:

    # When set to true, all non-peaceful towns will accrue war tokens every Towny day.
    # These tokens can be spent on Declarations of War, a method of allowing players to start wars independent of admins.
    award_war_tokens: 'false'

    # How many tokens do non-peaceful towns get per Towny day?
    daily_token_amount: '1'

    # When true, only the town which bought the Declaration of War with tokens can use the Declaration of War book.
    # Set to false to allow towns rich with Tokens to trade Declaration of War books to other towns in order
    # to foment wars in other towns, nations.
    are_declarations_of_war_usable_only_by_their_creators: 'true'

  ############################################################
  # +------------------------------------------------------+ #
  # |                TownBlocks settings                   | #
  # |                                                      | #
  # | Event Wars can optionally have attackableTownBlocks. | #
  # | This section controls the various TownBlock settings.| #
  # +------------------------------------------------------+ #
  ############################################################
  townblocks:

    # If true, town members and their allies can regen health on plots during war, when they outnumber the attackers.
    healable: 'true'

    # How many seconds pass between townblock hp being harmed/healed. This is defaulted to 5, and you probably want to leave this alone.
    # Does not accept numbers lower than 3.
    attack_interval: '5'

    # A townblock takes damage every 5 seconds that an enemy is stood in it.
    block_hp:

      # How much HP does a normal TownBlock receive.
      town_block_hp: '80'

      # How much HP does a town Homeblock receive.
      home_block_hp: '160'

      # When set above 0, and it is a town war, the town being attacked will need to have this many players online.
      # When set above 0, and it is a civil war, the side being attacked will need to have this many players online.
      # When set above 0, and it is a nation war, the nation being attacked will need to have this many players online.
      # When set above 0, and it is an alliance or world war, the alliance of nations being attacked will need to have this many players online.
      # Keep in mind that this will allows towns holding a lead to log off to keep their Town's TownBlock HP untouchable, and should be countered with hands-on moderation.
      required_defenders_online: '0'

    # The minimum height at which a player must stand to count as an attacker and do harm to townblocks.
    min_height: '55'

    # When true, invisible players will not be able to attack a townblock's HP.
    ignore_invisible_players: 'true'

    # If true, fireworks will be launched at plots being attacked or healed in war every war tick.
    firework_on_attacked: 'true'

    # If set to true when a town drops an enemy townblock's HP to 0, the attacking town gains a bonus townblock,
    # and the losing town gains a negative (-1) bonus townblock.
    costs_townblocks: 'false'

    # The amount of time before a townblock which has had its HP dropped to 0 is re-added back to the war.
    # This resurrection requires that the War Type has: townblocks_switch_towns=true, townblock_hp=true, and townblocks_single_use=false.
    # After the delay passes, the TownBlock is re-added to the war and is able to be fought over again.
    resurrect_delay: 5m

    bank_plots:

      # When true, capturing bank plots will cause the attackers to steal money from the town.
      enabled: 'false'

      # Accepts either fixed or percentage. This determines if the below amount setting is a fixed amount of money stolen, or a percentage of the town bank.
      type: fixed

      # The amount, either a fixed value or a percentage, that is stolen from the town when their bankplots are dropped to 0 hp.
      amount: '10'

  ############################################################
  # +------------------------------------------------------+ #
  # |                  Economy Settings                    | #
  # |                                                      | #
  # | Event Wars can optionally have economic costs and    | #
  # | penalties. These costs are configured here. If a town| #
  # | cannot pay the costs they are removed from the war   | #
  # | that they are involved in.                           | #
  # +------------------------------------------------------+ #
  ############################################################
  eco:

    # When set to true, war results in economic losses when players are killed, or their townblocks lose their HP.
    # Additionally, the spoils of war will not be given out while this is set to false.
    using_economy: 'true'

    # This amount is taken from the losing town for each plot lost.
    # This price is only taken if the WarType has the townblock_hp set to true.
    # A town which is unable to pay this price is removed from teh war.
    wartime_town_block_loss_price: '0.0'

    # This amount is taken from the player if they die during the event.
    # A player which is unable to pay this price is removed from teh war.
    price_death_wartime: '0.0'

    # When this is set to true any money gained from townblock loss or pvp death prices will be added to the WarSpoils rather than paid out to the player or town that has scored.
    # This means that money can be lost throughout the war but potentially gained back at the end.
    # A downside to this is that towns will not be able to fund their continued existence in the war by scoring mid-war.
    prices_go_to_war_spoils: 'false'

  ############################################################
  # +------------------------------------------------------+ #
  # |                Conquering Settings                   | #
  # |                                                      | #
  # | NationWar, AllianceWar and WorldWar can optionally   | #
  # | have towns which are removed from their wars become  | #
  # | conquered by the nation which has removed them.      | #
  # | These settings are found here.                       | #
  # +------------------------------------------------------+ #
  ############################################################
  conquering:

    # If set to true, and the War Type's winner_conquers_towns is also true, nation capitals will not switch nations.
    # Used only when the WarType has winner_conquers_towns set to true.
    # If this setting is false, and winner_conquers_towns is true, the losing nation will be deleted and the capital will change nations.
    winner_takes_ownership_of_town_excludes_nation_capitals: 'false'

    # Number of Towny new days until a conquered town loses its conquered status.
    # Set to -1 if you want Towns to remain conquered forever.
    conquer_time: '-1'

    # When true, a town will not be able to kick their members, or have their members use /t leave.
    conquering_prevents_town_leave: 'true'

    # When true, a town which has been conquered by a nation can be griefed by the king.
    conquering_allows_king_to_grief: 'false'

    # When true, a town which has been conquered by a nation can be griefed by any nation member whose town is not also conquered.
    conquering_allows_all_nation_to_grief: 'false'

    timed_griefing:

      # When true, a nation is able to grief their newly-conquered towns for a period of time.
      # This setting will have no effect if conquering_allows_all_nation_to_grief is set to true.
      enabled: 'true'

      # When timed_griefing is enabled, how long does the period last for?
      time_period: 10m

      # When timed_griefing is enabled, what action types are allowed? Available types: BUILD,DESTROY,SWITCH,ITEMUSE
      allowed_action_types: SWITCH,ITEMUSE

  ############################################################
  # +------------------------------------------------------+ #
  # |             Occupational Control Settings            | #
  # |                                                      | #
  # | Occupational Control is a feature that exists as a   | #
  # | half-way point between conquering disabled and       | #
  # | enabled. For wars that would result in a nation or   | #
  # | town ceasing to exist, due to town war causing the   | #
  # | losing town to merge into the winning town, or a     | #
  # | nation war causing a nation to be deleted when its   | #
  # | last town is removed.                                | #
  # | These towns and nations will remain in existence and | #
  # | be subject to occupational actions, executed by the  | #
  # | king or mayor of the winning nation or town, for a   | #
  # | limited period of time. Available actions are out-   | #
  # | lined below.                                         | #
  # |                                                      | #
  # | Occupational control is enabled per-WarType in the   | #
  # | War Types sections below, when those war types       | #
  # | support it, ie: TownWar, NationWar.                  | #
  # +------------------------------------------------------+ #
  ############################################################
  occupation:

    # The time period after a war ends in which the winning King or Mayor can make changes to the recently defeated Nation or Town.
    control_time_duration: 1d

    available_actions:

      # Can the losing nation or town's king or mayor be replaced?
      replace_mayor_or_king: 'true'

      # Can the winning king or mayor add and remove residents of Towns they have occupied?
      alter_residents: 'true'

  ############################################################
  # +------------------------------------------------------+ #
  # |                   Points Settings                    | #
  # |                                                      | #
  # | Points are awarded for dropping townblocks HP to 0,  | #
  # | removing towns and removing nations from the wars.   | #
  # | Points are tallied up to generate a score for the    | #
  # | town or resident, which will decide who wins the war.| #
  # +------------------------------------------------------+ #
  ############################################################
  points:
    points_townblock: '1'
    points_town: '25'
    points_nation: '100'

  ############################################################
  # +------------------------------------------------------+ #
  # |                  War Naming Options                  | #
  # |                                                      | #
  # | Some wars can have dynamic names, enriching the lore | #
  # | surrounding wars. These wars use combinations of     | #
  # | words, which you can configure here.                 | #
  # +------------------------------------------------------+ #
  ############################################################
  names:

    # The first word used in named war names.
    first_word: Two,Three,Four,Five,Six,Seven,Eight,Nine,Ten,Eleven,Twelve,Red,Yellow,Blue,Green,Purple,Orange,Spring,Summer,Autumn,Winter,Hidden,Striking,Shadowed,Bold,Beleaguered,Compassionate,Strident,dingle,dookie,poopie,boob,peepee,doinkers,long one,shlong,pack a smokes,spanky

    # The second word used in named war names.
    second_word: Snakes,Dragons,Mountains,Hillsides,Sisters,Brothers,Sons,Daughters,Aggressors,Lions,Elephants,Barrows,Poets,Bears,Nations,Labourers,Upsetters,hamme,smoney,suckma

  ############################################################
  # +------------------------------------------------------+ #
  # |                War Types Configuration               | #
  # |                                                      | #
  # | WarTypes: Riot, Town vs Town, Civil War, Nation vs   | #
  # | Nation and World War.                                | #
  # +------------------------------------------------------+ #
  ############################################################
  war_types:

    ############################################################
    # +------------------------------------------------------+ #
    # |                 Riot War Settings                    | #
    # +------------------------------------------------------+ #
    ############################################################
    riot:

      # Does the server allow riots?
      enabled: 'true'

      # How many seconds of delay before a riot war begins?
      startup_delay: '120'

      # How long a player has to be a member of a town before they can declare a riot war.
      # This does not affect the mayor. This will prevent young towns from having riots started by their normal residents.
      town_membership_time_requirement: 7d

      # How many people need to be online in the town, for a riot declaration of war to be used.
      min_online_in_town: '8'

      # When true, a town with a population lower than the min_online_in_town value, will be able to riot if
      # their entire town is online.
      min_online_ignores_low_pop: 'false'

      # The maximum time that a riot can last.
      # Set to 0m to disable and have riots last until other win-conditions are met.
      max_time_duration: 5h

      max_score:

        # When enabled a riot will end when one player reaches the max score. In riots this is done via killing members of the city or the rioters.
        enabled: 'false'

        # What score does someone have to reach to win the riot.
        winning_score: '50'

      # Is /surrender allowed in Riots? Riot surrenders involve giving up and does not
      # create a confirmation for another party.
      surrender_allowed: 'true'

      # How much time must pass between a town's last war (of any type) before a town can start a riot war?
      cooldown: 1d

      # How many lives do normal residents get, before they are removed from the war. Set to -1 for unlimited lives.
      resident_lives: '5'

      # How many lives do mayors get, before they are removed from the war. Set to -1 for unlimited lives.
      mayor_lives: '5'

      # Does a riot war end if the mayor is killed to the point they have no lives left?
      mayor_death: 'false'

      # Does the highest score of the riot take over the town (if they were on the rebel side.)
      winner_takes_over_town: 'false'

      # How much money is automatically put into the war spoils at the beginning of a riot.
      base_spoils: '10.0'

      # How many points are awarded for killing an enemy.
      points_per_kill: '10'

      # How many tokens does it cost a town to purchase a riot Declaration of War.
      token_cost: '20'

      # When true, a neutral town cannot have a riot.
      does_neutrality_prevent_riot: 'false'

      # When true the editable_materials in the WarZone Block Permissions section will be used.
      build_and_destroy_editable_materials: 'true'

      # When true, players will be able to switch use in warzones during riots.
      switch_use: 'false'

      # When true, players will be able to item use in warzones during riots.
      item_use: 'false'

    ############################################################
    # +------------------------------------------------------+ #
    # |               Town vs Town War Settings.             | #
    # +------------------------------------------------------+ #
    ############################################################
    town_war:

      # Does the server allow town wars?
      enabled: 'true'

      # How many seconds of delay before a town war begins?
      startup_delay: '240'

      # How many people need to be online in both towns, for a townwar declaration of war to be used.
      min_online_each_town: '5'

      # When true, a town with a population lower than the min_online_in_town value, will be able to town war if
      # their entire town is online.
      min_online_ignores_low_pop: 'false'

      # The maximum time that a town war can last.
      # Set to 0m to disable and have town wars last until other win-conditions are met.
      max_time_duration: 48h

      max_score:

        # When enabled a townwar will end when the first town reaches the max score.
        enabled: 'false'

        # What score does someone have to reach to win the town war.
        winning_score: '100'

      # Is /surrender allowed in Town war? Town War surrenders must be accepted by the other side and can be
      # a whitepeace, for money, for towns, or for towns and money.
      surrender_allowed: 'true'

      surrender:

        # When true, trading towns for surrendering will be allowed.
        allow_surrendering_for_towns: 'true'

        # When true, trading money for surrendering will be allowed.
        allow_surrendering_for_money: 'true'

      # How much time must pass between a town's last war (of any type) before a town can join a town war?
      cooldown: 1d

      # In town war, do the townblocks have HP which can be fought over?
      townblock_hp: 'false'

      # Requires townblock_hp to be true. When a townblock is dropped to 0hp, does it change ownership
      # to the town that conquered it?
      townblocks_switch_towns: 'true'

      # Requires townblock_hp and townblocks_switch_towns to be true. When a townblock is dropped to 0hp, is it taken out of the war for good?
      # When true, the townblock can only be fought over once.
      # When false, the townblock will be able to be fought over again after a configured amount of time set at war.townblocks.resurrect_delay.
      townblocks_single_use: 'false'

      # How many lives do normal residents get, before they are removed from the war. Set to -1 for unlimited lives.
      resident_lives: '5'

      # How many lives do mayors get, before they are removed from the war. Set to -1 for unlimited lives.
      mayor_lives: '5'

      # Does a town war end if one of the mayors is killed to the point they have no lives left?
      mayor_death: 'false'

      # Does the losing town disolve and become merged with the winning town?
      winner_takes_over_town: 'false'

      # Does the winning town can Occupational Control, for the time period set in the Occupation Settings section of the config?
      # This setting is not used when the above winner_takes_over_town is set to true.
      winner_gains_occupational_control: 'false'

      # How much money is automatically put into the war spoils at the beginning of a town war.
      base_spoils: '100.0'

      # How many points are awarded for killing an enemy.
      points_per_kill: '10'

      # How many tokens does it cost a town to purchase a town war Declaration of War.
      token_cost: '45'

      # When true, a neutral town cannot have a town vs town war.
      does_neutrality_prevent_town_war: 'false'

      # When true the editable_materials in the WarZone Block Permissions section will be used.
      build_and_destroy_editable_materials: 'false'

      # When true, players will be able to switch use in warzones during townwars.
      switch_use: 'false'

      # When true, players will be able to item use in warzones during townwars.
      item_use: 'false'

    ############################################################
    # +------------------------------------------------------+ #
    # |               Independence War Settings              | #
    # +------------------------------------------------------+ #
    ############################################################
    independence_war:

      # Does the server allow independence wars?
      enabled: 'true'

      # How many seconds of delay before a independence war begins?
      startup_delay: '20'

      # How long a town has to be a member of a nation before they can declare a independence war.
      # This does not affect the king of the nation. This will prevent young nations from having independencewars started by their normal mayors.
      nation_membership_time_requirement: 7d

      # How many people need to be online in the nation, for a independencewar declaration of war to be used.
      min_online_in_nation: '5'

      # When true, a nation with a population lower than the min_online_in_nation value, will be able to independence war if
      # their entire nation is online.
      min_online_ignores_low_pop: 'false'

      # The maximum time that a independence war can last.
      # Set to 0m to disable and have independence wars last until other win-conditions are met.
      max_time_duration: 48h

      max_score:

        # When enabled a independence war will end when the first town reaches the max score.
        enabled: 'false'

        # What score does someone have to reach to win the independence war.
        winning_score: '100'

      # Is /surrender allowed in independence war? Independence War surrenders involve giving up and does not
      # create a confirmation for another party.
      surrender_allowed: 'true'

      # How much time must pass between a town's last war (of any type) before a town can join a independence war?
      cooldown: 0d

      # In town war, do the townblocks have HP which can be fought over?
      townblock_hp: 'true'

      # How many lives do normal residents get, before they are removed from the war. Set to -1 for unlimited lives.
      resident_lives: '-1'

      # How many lives do mayors get, before they are removed from the war. Set to -1 for unlimited lives.
      mayor_lives: '-1'

      # Does a town get removed from the independence war if their mayor is killed to the point they have no lives left?
      mayor_death: 'false'

      # How much money is automatically put into the war spoils at the beginning of a independence war.
      base_spoils: '500.0'

      # How many points are awarded for killing an enemy.
      points_per_kill: '0'

      # How many tokens does it cost a town to purchase a independence war Declaration of War.
      token_cost: '90'

      # When true, a neutral nation cannot have a independence war.
      does_neutrality_prevent_independence_war: 'false'

      # When true the editable_materials in the WarZone Block Permissions section will be used.
      build_and_destroy_editable_materials: 'true'

      # When true, players will be able to switch use in warzones during independence wars.
      switch_use: 'false'

      # When true, players will be able to item use in warzones during independence wars.
      item_use: 'false'

    ############################################################
    # +------------------------------------------------------+ #
    # |                 Civil War Settings                   | #
    # +------------------------------------------------------+ #
    ############################################################
    civil_war:

      # Does the server allow civil wars?
      enabled: 'true'

      # How many seconds of delay before a civil war begins?
      startup_delay: '30'

      # When true, towns with the Conquered status will be able to start a civil war.
      # When false, those towns will not be able to start civil wars.
      allow_conquered_towns_to_start_civil_war: 'false'

      # How long a town has to be a member of a nation before they can declare a civil war.
      # This does not affect the king of the nation. This will prevent young nations from having civilwars started by their normal mayors.
      nation_membership_time_requirement: 14d

      # How many people need to be online in the nation, for a civilwar declaration of war to be used.
      min_online_in_nation: '10'

      # When true, a nation with a population lower than the min_online_in_nation value, will be able to civil war if
      # their entire nation is online.
      min_online_ignores_low_pop: 'false'

      # The maximum time that a civil war can last.
      # Set to 0m to disable and have civil wars last until other win-conditions are met.
      max_time_duration: 48h

      max_score:

        # When enabled a civil war will end when the first town reaches the max score.
        enabled: 'false'

        # What score does someone have to reach to win the civil war.
        winning_score: '100'

      # Is /surrender allowed in civil war? Civil War surrenders involve giving up and does not
      # create a confirmation for another party.
      surrender_allowed: 'true'

      # How much time must pass between a town's last war (of any type) before a town can join a civil war?
      cooldown: 3d

      # In town war, do the townblocks have HP which can be fought over?
      townblock_hp: 'true'

      # How many lives do normal residents get, before they are removed from the war. Set to -1 for unlimited lives.
      resident_lives: '5'

      # How many lives do mayors get, before they are removed from the war. Set to -1 for unlimited lives.
      mayor_lives: '5'

      # Does a town get removed from the civil war if their mayor is killed to the point they have no lives left?
      mayor_death: 'false'

      # Does the winning town take over as capital of the nation? The winning town has to have been on the side of the rebels.
      winner_takes_over_nation: 'true'

      # How much money is automatically put into the war spoils at the beginning of a civil war.
      base_spoils: '500.0'

      # How many points are awarded for killing an enemy.
      points_per_kill: '10'

      # How many tokens does it cost a town to purchase a civil war Declaration of War.
      token_cost: '90'

      # When true, a neutral nation cannot have a civil war.
      does_neutrality_prevent_civil_war: 'false'

      # When true the editable_materials in the WarZone Block Permissions section will be used.
      build_and_destroy_editable_materials: 'false'

      # When true, players will be able to switch use in warzones during civil wars.
      switch_use: 'false'

      # When true, players will be able to item use in warzones during civil wars.
      item_use: 'false'

    ############################################################
    # +------------------------------------------------------+ #
    # |             Nation vs Nation War Settings            | #
    # +------------------------------------------------------+ #
    ############################################################
    nation_war:

      # Does the server allow nation wars?
      enabled: 'true'

      # When true, upon declaring war against a nation, both nations enemy each other.
      does_nation_war_automaticly_add_enemy: 'true'

      # How many seconds of delay before a nation war begins?
      startup_delay: '900'

      # How many people need to be online in both nations, for a nationwar declaration of war to be used.
      min_online_each_nation: '0'

      # When true, a nation with a population lower than the min_online_each_nation value, will be able to nation war if
      # their entire nation is online.
      min_online_ignores_low_pop: 'false'

      # The maximum time that a nation war can last.
      # Set to 0m to disable and have nation wars last until other win-conditions are met.
      max_time_duration: 0h

      max_score:

        # When enabled a nation wars will end when the first town reaches the max score.
        enabled: 'false'

        # What score does someone have to reach to win the nation war.
        winning_score: '100'

      # Is /surrender allowed in Nation war? Nation War surrenders must be accepted by the other side and can be
      # a whitepeace, for money, for towns, or for towns and money.
      surrender_allowed: 'true'

      surrender:

        # When true, trading towns for surrendering will be allowed.
        allow_surrendering_for_towns: 'true'

        # When true, trading money for surrendering will be allowed.
        allow_surrendering_for_money: 'true'

      # How much time must pass between a town's last war (of any type) before a town can join a nation war?
      cooldown: 0d

      # In nation war, do the townblocks have HP which can be fought over?
      townblock_hp: 'true'

      # In nation wars that have townblock HP enabled or griefing enabled, are players required to attack the capital cities' townblocks last?
      # When true the capital cities' townblocks will only be attackable and griefable after the nation has no other towns left in the war.
      attack_capital_city_last: 'true'

      # Requires townblock_hp to be true. When a townblock is dropped to 0hp, does it change ownership
      # to the town that conquered it?
      townblocks_switch_towns: 'false'

      # Requires townblock_hp and townblocks_switch_towns to be true. When a townblock is dropped to 0hp, is it taken out of the war for good?
      # When true, the townblock can only be fought over once.
      # When false, the townblock will be able to be fought over again after a configured amount of time set at war.townblocks.resurrect_delay.
      townblocks_single_use: 'false'

      # How many lives do normal residents get, before they are removed from the war. Set to -1 for unlimited lives.
      resident_lives: '-1'

      # How many lives do mayors get, before they are removed from the war. Set to -1 for unlimited lives.
      mayor_lives: '-1'

      # Does a town get removed from the nation war if their mayor is killed to the point they have no lives left?
      # Does a nation get removed from the nation war if their king is killed to the point they have no lives left?
      mayor_death: 'false'

      # Does the winning nation conquer towns which are knocked out of the war?
      winner_conquers_towns: 'true'

      # Does the winning nation can Occupational Control, for the time period set in the Occupation Settings section of the config?
      # This setting is not used when the above winner_takes_over_town is set to true.
      winner_gains_occupational_control: 'false'

      # How much money is automatically put into the war spoils at the beginning of a nation war.
      base_spoils: '20000.0'

      # How many points are awarded for killing an enemy.
      points_per_kill: '0'

      # How many tokens does it cost a town to purchase a nation war Declaration of War.
      token_cost: '150'

      # When true, a neutral nation cannot have a nation vs nation war.
      does_neutrality_prevent_nation_war: 'false'

      # When true the editable_materials in the WarZone Block Permissions section will be used.
      build_and_destroy_editable_materials: 'true'

      # When true, players will be able to switch use in warzones during nation wars.
      switch_use: 'false'

      # When true, players will be able to item use in warzones during nation wars.
      item_use: 'false'

    ############################################################
    # +------------------------------------------------------+ #
    # |           Alliance vs Alliance War Settings          | #
    # +------------------------------------------------------+ #
    ############################################################
    alliance_war:

      # Does the server allow alliance wars?
      enabled: 'true'

      # Setting this to false does nothing. Alliance war automatically makes enemies of each side.
      does_alliance_war_automaticly_add_enemy: 'true'

      # When true, all allied nations of the two nations at the core of an AllianceWar will join on their respective sides.
      # When false, allies will be prompted to join the war, allowing allies to opt out if they do not want to war.
      do_allies_get_forced_to_join_war: 'false'

      # How many seconds of delay before a alliance war begins?
      startup_delay: '240'

      # The maximum time that a alliance war can last.
      # Set to 0m to disable and have alliance wars last until other win-conditions are met.
      max_time_duration: 48h

      max_score:

        # When enabled an alliance war will end when the first town reaches the max score.
        enabled: 'false'

        # What score does someone have to reach to win the alliance war.
        winning_score: '100'

      # Is /surrender allowed in Alliance war? AllianceWar surrenders involve giving up and does not
      # create a confirmation for another party.
      surrender_allowed: 'true'

      surrender:

        # When true, trading towns for surrendering will be allowed.
        allow_surrendering_for_towns: 'true'

        # When true, trading money for surrendering will be allowed.
        allow_surrendering_for_money: 'true'

      # How much time must pass between a town's last war (of any type) before a town can join a alliance war?
      cooldown: 2d

      # In alliance war, do the townblocks have HP which can be fought over?
      townblock_hp: 'true'

      # In alliance wars that have townblock HP enabled or griefing enabled, are players required to attack the capital cities' townblocks last?
      # When true the capital cities' townblocks will only be attackable and griefable after the nation has no other towns left in the war.
      attack_capital_city_last: 'true'

      # Requires townblock_hp to be true. When a townblock is dropped to 0hp, does it change ownership
      # to the town that conquered it?
      townblocks_switch_towns: 'false'

      # Requires townblock_hp and townblocks_switch_towns to be true. When a townblock is dropped to 0hp, is it taken out of the war for good?
      # When true, the townblock can only be fought over once.
      # When false, the townblock will be able to be fought over again after a configured amount of time set at war.townblocks.resurrect_delay.
      townblocks_single_use: 'false'

      # How many lives do normal residents get, before they are removed from the war.
      resident_lives: '5'

      # How many lives do mayors get, before they are removed from the war.
      mayor_lives: '5'

      # Does a town get removed from the alliance war if their mayor is killed to the point they have no lives left?
      # Does a nation get removed from the alliance war if their king is killed to the point they have no lives left?
      mayor_death: 'true'

      # Does the winning nation conquer towns which are knocked out of the war?
      winner_conquers_towns: 'true'

      # Does the town which received the highest score also conquer towns which did not fall during the war? 
      # This is used when a war ends because of time expiring and not when a town actually knocks another town from the war.
      # Enabling this will cause all of the towns on the opposite side of the top scoring town to become conquered by the top-scoring town's nation.
      # This would be considered very destructive on a server but is also probably incredibly rewarding for the town that accomplishes it.
      top_scoring_town_conquers_towns: 'false'

      # How much money is automatically put into the war spoils at the beginning of a alliance war.
      base_spoils: '1000.0'

      # How many points are awarded for killing an enemy.
      points_per_kill: '10'

      # How many tokens does it cost a town to purchase a alliance war Declaration of War.
      token_cost: '150'

      # When true, a neutral nation cannot have a alliance vs alliance war.
      does_neutrality_prevent_alliance_war: 'false'

      # When true the editable_materials in the WarZone Block Permissions section will be used.
      build_and_destroy_editable_materials: 'false'

      # When true, players will be able to switch use in warzones during alliance wars.
      switch_use: 'false'

      # When true, players will be able to item use in warzones during alliance wars.
      item_use: 'false'

    ############################################################
    # +------------------------------------------------------+ #
    # |                  World War Settings                  | #
    # +------------------------------------------------------+ #
    ############################################################
    world_war:

      # Does the server allow world wars?
      enabled: 'true'

      # When this setting is true, all of the nations entering into the war will make enemies of each other, as long as they are not allied.
      does_world_war_automaticly_add_enemy: 'true'

      # How many seconds of delay before a world war begins?
      startup_delay: '900'

      # The maximum time that a world war can last.
      # Set to 0m to disable and have world wars last until other win-conditions are met.
      max_time_duration: 0h

      max_score:

        # When enabled a world war will end when the first town reaches the max score.
        enabled: 'false'

        # What score does someone have to reach to win the world war.
        winning_score: '100'

      # Is /surrender allowed in world war? WorldWar surrenders involve giving up and does not
      # create a confirmation for another party.
      surrender_allowed: 'true'

      # How much time must pass between a town's last war (of any type) before a town can join a world war?
      cooldown: 0d

      # In world war, do the townblocks have HP which can be fought over?
      townblock_hp: 'true'

      # Requires townblock_hp to be true. When a townblock is dropped to 0hp, does it change ownership
      # to the town that conquered it?
      townblocks_switch_towns: 'false'

      # Requires townblock_hp and townblocks_switch_towns to be true. When a townblock is dropped to 0hp, is it taken out of the war for good?
      # When true, the townblock can only be fought over once.
      # When false, the townblock will be able to be fought over again after a configured amount of time set at war.townblocks.resurrect_delay.
      townblocks_single_use: 'false'

      # How many lives do normal residents get, before they are removed from the war. Set to -1 for unlimited lives.
      resident_lives: '-1'

      # How many lives do mayors get, before they are removed from the war. Set to -1 for unlimited lives.
      mayor_lives: '-1'

      # Does a town get removed from the world war if their mayor is killed to the point they have no lives left?
      # Does a nation get removed from the world war if their king is killed to the point they have no lives left?
      mayor_death: 'true'

      # Does the winning nation conquer towns which are knocked out of the war?
      winner_conquers_towns: 'true'

      # Does the town which received the highest score also conquer towns which did not fall during the war? 
      # This is used when a war ends because of time expiring and not when a town actually knocks another town from the war.
      # Enabling this will cause all of the towns in the nations which are enemied by the winning town's nation to become conquered.
      # This would be considered very destructive on a server but is also probably incredibly rewarding for the town that accomplishes it.
      top_scoring_town_conquers_towns: 'false'

      # How much money is automatically put into the war spoils at the beginning of a world war.
      base_spoils: '20000'

      # How many points are awarded for killing an enemy.
      points_per_kill: '0'

      # How many tokens does it cost a town to purchase a world war Declaration of War.
      token_cost: '300'

      # In world war, are nations allowed to be neutral? When set to false nations will have their neutrality ignored.
      nations_are_allowed_to_be_neutral: 'false'

      # When true the editable_materials in the WarZone Block Permissions section will be used.
      build_and_destroy_editable_materials: 'true'

      # When true, players will be able to switch use in warzones during world wars.
      switch_use: 'false'

      # When true, players will be able to item use in warzones during world wars.
      item_use: 'false'

  ############################################################
  # +------------------------------------------------------+ #
  # |              Warzone Block Permissions               | #
  # |                                                      | #
  # | This section decides what blocks can be harmed       | #
  # | during event war. This includes griefing, burning    | #
  # | and explosions.                                      | #
  # +------------------------------------------------------+ #
  ############################################################
  warzone:

    # editable_materials is controller per-WarType. You must enabled editableMaterials in the above WarType section.
    # List of materials that can be modified in a warzone, when enabled for the applicable WarType.
    # '*' = Allow all materials.
    # Prepend a '-' in front of a material to remove it. Used in conjunction with when you use '*'.
    # Eg: '*,-chest,-furnace'
    editable_materials: tnt,scaffolding

    # Add '-fire' to editable materials for complete protection when setting is false. This prevents fire to be created and spread.
    fire: 'true'
    explosions: 'true'
    explosions_break_blocks: 'true'

    # Only under affect when explosions_break_blocks is true.
    explosions_regen_blocks: 'false'

    # A list of blocks that will not be exploded, mostly because they won't regenerate properly.
    # These blocks will also protect the block below them, so that blocks like doors do not dupe themselves.
    # Only under affect when explosions_break_blocks is true.
    explosions_ignore_list: WOODEN_DOOR,ACACIA_DOOR,DARK_OAK_DOOR,JUNGLE_DOOR,BIRCH_DOOR,SPRUCE_DOOR,IRON_DOOR,CHEST,TRAPPED_CHEST,FURNACE,BURNING_FURNACE,DROPPER,DISPENSER,HOPPER,ENDER_CHEST,WHITE_SHULKER_BOX,ORANGE_SHULKER_BOX,MAGENTA_SHULKER_BOX,LIGHT_BLUE_SHULKER_BOX,YELLOW_SHULKER_BOX,LIME_SHULKER_BOX,PINK_SHULKER_BOX,GRAY_SHULKER_BOX,SILVER_SHULKER_BOX,CYAN_SHULKER_BOX,PURPLE_SHULKER_BOX,BLUE_SHULKER_BOX,BROWN_SHULKER_BOX,GREEN_SHULKER_BOX,RED_SHULKER_BOX,BLACK_SHULKER_BOX,NOTE_BLOCK,LEVER,STONE_PLATE,IRON_DOOR_BLOCK,WOOD_PLATE,JUKEBOX,DIODE_BLOCK_OFF,DIODE_BLOCK_ON,FENCE_GATE,GOLD_PLATE,IRON_PLATE,REDSTONE_COMPARATOR_OFF,REDSTONE_COMPARATOR_ON,BEACON

    # When true, a towns residents will also be able to grief their own town, in the same way enemies are able to.
    # When false, residents will follow normal town permissions in their town.
    # This will also affect nation-members in nation war and world wars, people on the same of a civil war,
    # and other situations where someone is an ally but not a full resident of the town in question.
    warzone_affects_residents: 'false'

  ############################################################
  # +------------------------------------------------------+ #
  # |                   War Books Settings                 | #
  # |                                                      | #
  # | Settings for start, middle and end of war books.     | #
  # +------------------------------------------------------+ #
  ############################################################
  books:

    # When false the start-of-war book is sent to everyone online, not just the players limited to the war.
    war_start_books_goes_only_to_warriors: 'false'

    # When false the hourly war update book is sent to everyone online, not just the players limited to the war.
    war_update_books_goes_only_to_warriors: 'true'

    # When false the end-of-war book is sent to everyone online, not just the players limited to the war.
    war_end_books_goes_only_to_warriors: 'false'

############################################################
# +------------------------------------------------------+ #
# |                   Discord Settings                   | #
# |                                                      | #
# | Discord-related webhook settings.                    | #
# +------------------------------------------------------+ #
############################################################
discord:

  # Set to true in order to have EventWar send embeds to discord.
  enabled: 'true'

  # Supply your valid discord webhook url here.
  webhook_url: https://discord.com/api/webhooks/1218480315471888424/I1RunVu76OWfn844_XaH9q2LvJ9dO9OXVBKsSfY8Jnm4KlXeeklLrLIHlKoLSPN24GiY

  messages:

    # Set to false to hide the war countdown messages being broadcast to the discord.
    enabled_countdown: 'true'

    # Set to true if you want discord messages to have no colouring.
    strip_colours: 'false'

############################################################
# +------------------------------------------------------+ #
# |                BattleSession Settings                | #
# |                                                      | #
# | BattleSessions are an optional system that limits    | #
# | when wars can be fought over on servers. Actions     | #
# | like killing players and harming townblock HP will   | #
# | have no effect while the battlesession is inactive.  | #
# | Lives will not be lost and points will not accrue.   | #
# +------------------------------------------------------+ #
############################################################
battlesessions:

  # Set to true in order to have EventWar use the battlesession system.
  enabled: 'false'

  # This value determines the duration of each battle session.
  # The default value is 60m which is 60 minutes.
  session_duration: 60m

  # The times at which battle sessions will begin on each day of the week.
  # When you want to use just one session in a day surround the time with 's like this: thursday: '19:00'
  # If you'd like to have no sessions use a pair of 's like this: thursday: ''
  start_times:
    saturday: 03:00,11:00,19:00
    sunday: 03:00,11:00,19:00
    monday: 03:00,11:00,19:00
    tuesday: 03:00,11:00,19:00
    wednesday: 03:00,11:00,19:00
    thursday: 03:00,11:00,19:00
    friday: 03:00,11:00,19:00