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).
Is this plugin updated to 1.6.4
@DanielYRH, mind if I try a fork bud?
is this like multiverse support? bc i dnt want spawn to be claimed.. or peoples plots in plotworld.. or anything i want/need protected..
@lJunKunl
It's not.
Is this plugin still being updated?
Permission requirement fix:
Link Removed: http://www.mediafire.com/?czv24i56wi6m9if
@DanielYRH
Sure I'll try help out a bit, been studying Java at university.
@xakiru
Swamped at the moment, happy to have the help if you would like to jump in and fix the code.
@solruki
Back before the plugin was released, author made repeated claims of when it would be released. It would always be two to three months after his date. So, let's just wait till October.
Maybe he's dead...
Don't die on us, we need you...
"Will look into the problem and put out a fix in the next few days" - 16th July
No updates, no word, nothing.
Please can you update this plugin ?
2013-07-30 20:19:54 [INFO] xxxxx issued server command: /twar aend NationA NationB 2013-07-30 20:19:54 [SEVERE] null com.palmergames.bukkit.towny.exceptions.NotRegisteredException: Not registered. at com.palmergames.bukkit.towny.object.Nation.removeEnemy(Unknown Source) at com.danielrharris.townywars.WarManager.endWar(WarManager.java:166) at com.danielrharris.townywars.WarManager.requestPeace(WarManager.java:137) at com.danielrharris.townywars.WarExecutor.declareEnd(WarExecutor.java:217) at com.danielrharris.townywars.WarExecutor.onCommand(WarExecutor.java:168) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:190) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:527) at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:979) at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:890) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:837) at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:125) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:592) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
Great plugin but as its broken right now I'm forced to remove it from my server. Please fix the Permission issues.
I see vectroncraft no longer works. I have previously ripped this plugin apart and it has a lot of potential. I have several servers and on one I would be interested in working together with you to increase the player enjoyment of this plugin. Let me know.
Hello ! I see this is a better plugin than a usual tonwny toggle war session. But no one can declare war in server.. It says they have no permissions. But there are no permission nodes which are given by plugin to use too.
I have Towny Advanced v0.84.0.0 . Is it the problem ?
@DanielYRH
Having the same issue with permissions. Any fix in works?
@oSS_Seth
Will look into the problem and put out a fix in the next few days
@DanielYRH
That's also my problem. Whenever someone runs /twar it tells them they don't have permission, and there isn't any permission nodes for it.
@DanielYRH
I Installed the plugin and set it up using the steps described in the description,but my players are telling me that they still don't have permission to use the commands.