VectronCraft Towny Wars
Description:
Like the land management of Towny but think it's too tame? Like the PvP of Factions but nowhere for your players to build in peace? Introducing Vectron Wars - A Towny Advanced add-on that will bridge the gap between those two plugins and allow your builders to build without running the risk of having their beautiful creations destroyed, while still allowing your towns and nations to participate in the chaotic Factions-like PvP element.
Basic Idea:
When a nation declares war on another nation, PvP is turned on in the towns at war, the nations declare each other as enemies (prevents town spawn travel), and the two nations are given a defense value equal to the number of towns in the nation, and each town within those nations are given a defense value equal to the number of residents * 2 + claimed town chunks (configurable).
If a resident of a nation at war is killed by a member of the enemy nation, a defense point is taken off of the victims town. Once the town defense reaches zero, it gets added to the enemies nation, a defense point is taken off of the victims nation, and the victims nations balance divided by the number of towns in that nation (before the conquer), and added to the victors nations balance. Then assuming you have set up the permissions correctly, conquered towns must remain in the nation that conquered them until such a time as their kicked, or conquered by another nation (I recommend setting up a max tax on towns and nations to prevent abuse). Players may not capture a nations capitol city until all other towns in the enemy nation have been captured.
Commands:
- /twar - Displays TownyWars configuration information (how the point calculation is setup + costs setup).
- /twar help - Displays the TownyWars help page.
- /twar status - Displays a list of ongoing wars.
- /twar status [nation] - Displays a list of the nations towns and their defense points
- /twar declare [nation] - Starts a war with another nation (REQUIRES YOU TO BE A KING/ASSISTANT).
- /twar end - Request from enemy nations staff to end the ongoing war. (REQUIRES YOU TO BE A KING/ASSISTANT).
- /twar neutral [nation] - Makes a certain nation neutral so other cannot declare war on it. Neutral nation members will also not be able to declare war on others. This command requires the townywars.neutral permission.
Admin Commands:
- /twar reload - Reloads the plugin
- /twar astart [nation] [nation] - Forces two nations to go to war.
- /twar aend [nation] [nation] - Forces two nations to stop a war.
Permissions:
- townywars.admin - Grants access to admin commands
- townywars.neutral - Grants the ability to make a nation neutral
Configuration:
- pper-player: 2.0 - Defense Points allocated per resident to the town defense - (this setting is a double)
- pper-plot: 1.0 - Defense Points allocated per owned chunk to the town defense (this setting is a double)
- death-cost: 0.0 - If killed during a war by an enemy town, your town will pay the killers town this amount. (this setting is a double)
- declare-cost: 0.0 - It will cost nations this amount to declare war. (this setting is a double)
- end-cost: 0.0 - It will cost both nations this amount if they decide to end the war peacefully. (this setting is a double)
Dependencies:
- Requires Towny Advanced 0.82.1.6 and up to operate.
Setup:
- Download plugin and drop it into the plugins directory
- Change your permissions so regular Towny residents DO NOT have the permission: towny.command.nation.leave (this makes it so towns cannot leave the nation once they have joined and must be conquered back or kicked)
- Restart!
Contribute
Would you like to help contribute to this project? Please visit our bitbucket (github like service), and help us out by reporting bugs, and even programming new features that you would like to see! We will turn the current code into the plugin and publish it to bukkitdev weekly (if updates exist).
@wrecktify80
And i would have no problem if they did. For the plugins that i wanted, i would happily donate to the developers to assist them. And if i for some reason could not donate, i would be more than happy to display a short ad for them every so often.
I am not spamming servers every 2 minutes... the timer is set to once every half hour, its not a major imposition.
And as for no one else asking for a donation... imagine a world where everything was 100% free. Ok... Now... Think it through. Ok, now lets assume the current web trend is to give out everything for free, how do those companies make their money? Ads.
Imagine if every plugin did this.. what a mess bukkit would be. Liked the thought of this plugin but what a turn off an ad-version or paying for a very simple plugin would be. I'm pretty sure there are at least 5,000 other plugins with heavier amounts of code on this website and not a single one asks for donation or puts advertisements in the plugin
@DanielYRH
Look at some other plugins, which are much more complex than this. The devs don't feel the need to spam every server that uses it with a message which is basically "Come join my server!". If a user really wants the plugin, they will search for it on bukkit. I have never come across another plugin developer who is so desperate for approval that they feel they have to advertise their own server in every server that uses their plugin. If you don't want people using it without that, don't release the plugin. I haven't released any of mine because I want them to be unique to my server, but even if I did release them (and I might some day), I wouldn't spam the servers that use it.
And in regards to this not being 'selling a plugin', what is it? You offer a version with ads for free, then make people pay for an ad-free version. Last I checked, that's selling a plugin.
Thank you to whoever reported me for "selling a plugin". Hardly that in my opinion, but alrighty. I will now cease to offer the ad-free version. Good day all!
@Codisimus
I am not forcing anyone to donate, I am merely awarding those who do.
Your all welcome to use the published jar for free, granted it does have a 1 line every 30 minutes.
@DanielYRH
If you make a good product you don't need to force users to donate, they will do it on their own.
@jimbobt123
Many many days of hard work went into this plugin, Consider this the lite version (fully featured yet has ads). Not everything on the internet has to be free.
Is it so unreasonable to request that server owners either donate a small amount of money, or use the ad-enabled version if the server really wants the plugin? I think not.
I spent my time working on this, and am releasing it to you. Since I helped you by developing and updating it, you can return the favor by keeping the lite version with ads, or by donating for the add-free version.
If you really want the plugin, you have 2 options: 1, use the ad-enabled version, or 2. Donate the small amount to get the ad-free version.
And frankly, if I find that people are simply removing the credits, I will cease all public development. I developed this plugin for my server, and was asked by a few people to release it so they could use it because there is no other plugin like this out there. The people who consider it a dick move, are the people who are most probably pirating all sorts of other content that people spent their time working on. There is an option to remove the ads, donate.
@balcas
Ikr! Force-advertising your server by announcing it through a plugin with no disable option is a dick move. Adding "ALTERING THIS PLUGIN IN ANY WAY IS NOT ALLOWED" isn't going to stop people from just opening up the plugin and removing that feature.
@mazza101
Ditto. :)
Waiting for neutral nations before adding this to my server :) would love to see neutral towns though!
@gohjinglun
[offsite linking removed]
Hi, the author of Towny Advanced seem to have deleted the plugin...
@wrecktify80
wrectify, thanks for the great ideas! Planning out version 2 with them :)
@balcas
Are those NON-PVP towns participating in your war? Because if they are not... that would explain your problem.
And remove your server spam o_o imagine people who doesnt have Basic java understanding they cant remove it. "Townywar$1.class"
yeah still cant fight inside NON-PVP towns and were in war -_-
Another suggestion #1: Configurable option to allow the use of TNT in towns. With regeneration on, this would allow holes to be blown in walls surrounding a town or players hiding in a house.
Another suggestion #2: Towns set a wager for the war, kinda like a treasure chest. Not sure if this even possible at all but a player might type /twar ante diamonds 20, and the opposing nation would have to do the same thing. Then war would be initiated. Winning nation gets the entire ante.
thanks
First download.
Yus.
@wrecktify80
Both nations do not have to accept. When one nation declares war, the war begins. To end it peacefully requires an accept from both sides.
Interesting suggestion for a possible future addition!
Something that I am not clear on. Do both nations have to accept the war for it to ensue?
I have a suggestion. Make it similar to town's default war policy. Nation A declares war on Nation B. Nation B can decline the war by paying a fee of X amount of dollars defined in the config file. This allows Nation B to avoid war but at a cost. Only allow 1 declaration of war on another nation every 24 hour real time period.