Sueta

⚔ BetterTownyWars ⚔ - Fight & Glory

2.1.8

Attack nations, fight for your people and defend yourself!

·Plugin

BetterTownyWars

BetterTownyWars provides new mechanics for letting your players to fight between their nations with rewards for the winner, allowing them to be neutral too.

Concept
Wars can be declared by a player if he/she has permissions. The plugin actually supports two types of war, and the winner earns a certain amount of money from the other nation bank.

War types

  • Nation vs Nation: Two nations against each other and the first one to kill a certain % of the residents of the enemy nation wins.
  • Town vs Town: Two towns fight and the first one to kill a certain % of the residents of the enemy nation wins.

A war can be ended if all of their members send a peace request or when it reaches the maximum duration time (disabled at the moment).

Requirements

  • Spigot / Paper 1.12 or newer
  • Towny 0.95.2.13 or newer

Commands & Permissions
Remember: You may want to use some perms in TownyPerms.yml to assign them to certain Towny ranks.

  • bettertownywars (/btw) - Shows plugin help (btw.use)
    • help - Shows plugin help (btw.use)
    • declare [NATION_VS_NATION/TOWN_VS_TOWN] [nation] - Declare war to a nation (btw.declare.[NATION_VS_NATION/TOWN_VS_TOWN])
    • finish [NATION_VS_NATION/TOWN_VS_TOWN] [nation] - Send a peace request to a nation to end war (btw.finish.[NATION_VS_NATION/TOWN_VS_TOWN])
    • list - Shows a list of active wars (btw.use)

Configuration

config.yml
language: en_US #Language file is (language).yml
max-war_duration: 604800000L #Milliseconds in a week
nation_vs_nation_kill_percentage_to_finish: 0.5 #Percentage of residents to be killed to win (0.5 = 50%)
lose_war_cost: 100
war_ended_check_interval: 15 #Interval of checking if a war has to end because it reached the max duration time
add_missing_messages_to_config: true #Dev option, not important if you do not add your own wars
declare_war_cost: 100
en_US.yml
no-permission: "&cYou do not have permission to do that"
not-enough-arguments: "&cNot enough arguments!"
war-started: "&cA war was declared to your nation!"
war-finished-lose: "&cWar finished! You lose..."
war-finished-win: "&aWar finished! Your nation won!"
war-spoils: "&bWar spoils"
peace-requested: " sent a peace request!"
you-peace-requested: "You sent a peace request!"
not-in-a-nation: "&cYou are not in a nation"
nation-does-not-exist: "&cThat nation does not exist"
your-nation-neutral: "&cYour nation is neutral!"
enemy-nation-neutral: "&cThat nation is neutral!"
war-ended-by-peace: "&aThe war ended peacefully!"
war-alert-on-join: "&6Be careful! There's an active war against your nation"
cannot-declare-your-own-nation: "&cYou cannot declare a war to your own nation"

Wiki and dev builds
For development builds and more info on the plugin, check the GitHub repository.

If you like this resource, feel free to leave a review! If you have any problem or bug to report contact me on my Discord support server or use the Discussion page.

Similar projects

Plugin →