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).
Sorry for the wait guys, i believe i found the issue. This should fix the issue, if it does, PLEASE LET ME KNOW (and if not, any more details appreciated!): Download .jar
@Hmmcrunchy
I'm having the same problem the console cant even use /twar aend "13.02 13:55:30 [Server] INFO You are not powerful enough in your nation to do that!"
no help?
conquered towns must remain in the nation that conquered them until such a time as *they're* kicked
Dan, is it possible to restrict the use of /twar declare to an admin much like how it is in normal Towny? I love this idea, and I am trying to give players as much freedom as possible, but considering the server will be a roleplay server, we can't just have kings/queens declaring war without a legitimate reason.
hello guys im using permissions bukkit and spigot and like th look of this -
are there any more general user permission nodes as my users get im sorry you do not have permission... etc when they type any /twar command
also i tried to delcare war and it says not high enough in your nation to do that even though im set to king
thanks very much :)
Hey Dan, U may have known me as xxfrixionxx, But I recently got a new account named MixedManiac Anyways since the server went down, I've been trying to find a replacement server. I still have not found 1 yet and I believe I will never. So if u could 1 day, any day, when u have the time, you don't have to but but if u want to Could u maybe start up the server again. If u do and infuse can't. Could u tell me on skype. Skype name: MixedManiacGaming Thanks......
can a town declare war on another town without their consent?
I'm interested in your plugin, but I'd be more interested in the hardcore side of it, I'm not looking for something that requires the other party to agree to the war.
All fixed. Uploaded v1.1.3 up for approval.
Hey man I really enjoy the plugin, but you made a small mistake with the last version. You named the plugin.yml in the jar config.yml. Renaming the yml allowed it to work for me, but you might want to upload a fix for it.
Regards,
Remlap
I really like your plugin, but it currently isn't working on my computer. I have no clue what the problem is, but when I place the plugin into my server's plugins folder, it doesn't list the commands or plugin being installed. Please fix this bug... This is the perfect plugin that I have been searching for. If the problem is on my side, I am happy to receive some advice on how to fix the problem.
Jeptha
Your latest version won't run on my 1.6.4 MCPC+ server, I get an error about plugin.yml missing. I figured out that it's named config.yml now and have simply expanded the jar, changed the file name and rebuilt the jar. Everything seems to work fine after that. This might be a result of the 1.7.2 CB you built against, not a big deal just thought I would mention it.
@Otrillion
If I can find the time (should be able to, and if not this week than definitely after Wednesday or next week, winter break starts then), then I would be happy to code you a custom version of the plugin with said features (details below), then would have to see how well it plays and decide if I want to apply those changes to the main plugin.
1. Fairly simple to do, not a problem. 2. If I remember correctly, this should be possible to do, but Ill have to check the Towny API again.
Oh and coffee consumption at university? You have no idea... :P
I'll get the new plugin installed and tested today. Thanks for the update! The way I saw it working was this.
A newly created town is automatically added to the 'Default' nation. They can not leave this nation because permissions are set as such. They can only create their own nation, or be conquered by war via this plugin. Once conquered their tax's now go to the new nation that got them. This provides an incentive to build a town, then get into a player controlled nation. Once stuck in a nation the full power of the plugin takes effect as nations fight for possession of the most towns to fill their war chests with taxes. I think this makes a fantastic war system.
The things getting in the way that I see are;
1. Newly created towns need to automatically be put into a nation. 2. If you fail to pay your nations tax's your town should be deleted, not leave the nation. this just makes folks run their bank dry on purpose to get out of evil overlords clutches.
Towny Wars provides the perfect balance between destruction of your towns work and fun pvp servers with a real goal. I hope your professors give you a light work load and maybe you can implement it! I'll send you a starbucks gift card I hear those are very useful at a university!
v1.1.2 Commit: b8f9b36 - Status: Pending BukkitDev Approval
Change Log:
HT @ Otrillion for finding where Issue #2 was occurring in the code.
@Otrillion
It should be possible, and fairly simple to force newly created towns into a default nation, not sure if that should be part of this plugin though... happy to add it for you though.
Good idea with the increasing cost for neutrality... ill see if i can find the time to implement this.
@wiedzmin137
Most definitely not, I simply value my education over bukkit plugin development, and so lack the time to actively work on it right now.
If we had a way of forcing all newly created towns into a 'default' nation, I think this is going to make a fantastic plugin. Add to that a cost that increases over time to remain a neutral nation will force nations to ether become huge economic powerhouses to be able to afford neutrality or pvp powerhouses to dominate the war. I'm not a developer but I would be willing to test and submit bugs if there is someone willing to maintain it. @DanielYRH I understand the lack of time and I don't even have university to deal with. Thanks for a great start on here.
@DanielYRH
I hope you didn't lose your engagement too.
Hi All,
I apologize for my inactivity, I have been extremely busy with work and university, and I simply no longer have the time to actively develop bukkit plugins.
On top of that, a couple of months ago my computer took a turn for the worse and decided to crash and burn. I lost all of the projects I had been working on, including the source code for this plugin. I did a recovery of the last plugin version, and the new source code should be working, but i have not actively tested it yet.
I also have now released the source code for this plugin on bitbucket, all you developers out there, please feel free to head on over, add, fix, and modify the code! I will allocate the time to return weekly and release an update on here with whichever changes have been worked on.
https://bitbucket.org/danielrharris/towny-wars
I have also ported the ticketing system to bitbucket, so any issues/suggestions etc that you might have, go there!
I have restored the source code and updated the project to use the latest CB, will release the jar after some testing can be arranged. If anyone would like to test it, please PM me your email so i can send you the beta jar.
Thank you all!
@Otrillion
Theoretically I can, but I do not know whether it makes sense, I can move up the plugin on GitHub, just compile and change the language on english.
I could really use this plug in on my new serve. It's 1.6.4 however and based on the commends this plugin has broken permissions. This mod has some real potential to change the way pvp servers are run. It's a great balance between pvp and griefing that delivers fun for your fighters and builders.
Please, is there anyone willing to take over this code and update it? The author has indicated he has no time to update perhaps there is someone that would be willing to take it over and patch it up?