BattleAxe
BattleAxe
BattleAxe is a plugin that allows you to change the amount of damage that axes do inflict to mobs and players on your server. If you want axes to do more damage, awesome! If you want them to be completely useless except for being able to use them to whack trees, fine by me! You can do both with BattleAxe!
BattleAxe affects the damage of axes for each material of axe, so it's really handy if you just want to change one or all of them.
Use
BattleAxe will give your players an important decision to make every time that they need to defend themselves or choose a weapon for battle. Players will be able to decide whether to use an axe, using more resources, but having the increased functionality of being able to cut down trees, or a sword, using less resources, and being able to make it more damaging with enchantments, but sacrificing the other uses of an axe.
This can also help your new players get started, because they will be able to gather resources, and fight off attack from mobs with the same tool!
Installation
Just drag the BattleAxe.jar file into your plugins folder and restart or reload your server. An editable config.yml file should automatically generate for you if you want to edit damages. By default, axes are set to do the same amount of damage as swords of the same material.
NOTE: You must be using Java JRE7 on your server to use this plugin! If you are getting an "UnsupportedClassVersionError", then you are using JRE6 and that is the reason why the plugin isn't working!
Configuration
To change the amount of damage that an axe of each material does, just edit the number (in hearts of damage) next to the material of axe that you want to change the damage of. Check this page to see the default damage values for axes if you want to make one or several of the axes to have the default damage.
Example: If you wanted gold axes to do 10 hearts of damage, you would simply change the number after gold to 10. Like this:
Gold: 10
Keep in mind, damages are still affected by armor and critical hits.
Permissions
BattleAxe only has one permission: BattleAxe.use
Having this permission makes players deal the damage with axes that are set in the config.yml file. If no permissions are found, this permission will be given to all players.
To-Do
- Configurable options for effects and powers when weilding the gold axe
Credits
- Plugin idea: 7007King0770
How to craft this BattleAxe ?
@DrakeDouglas
If you really want, I could try to compile it in JDK6 just for you :P
Dang, well thanks for the help.
I run it on a Linux server and every time I try to do something with java on there it's just a massive pain. I'm not fluent enough with Linux to spend too much time on it. You're plugin looks really cool though.
@DrakeDouglas
This means you aren't using JRE7. It's not the plugin at fault. I just compiled with JDK7, so it needs JRE7 to run. If you upgrade you server's java version, this this plugin should work. I do hope you get that sorted out. :)
2011-12-29 22:11:17 [SEVERE] Could not load 'plugins/BattleAxe.jar' in folder 'plugins': java.lang.UnsupportedClassVersionError: me/tomjw64/BattleAxe/BattleAxe : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:170) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:434) at org.bukkit.Bukkit.reload(Bukkit.java:187) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
I'd love ot use this, but it isn't working...
@supayoshi
A config file should generate. Are you getting an error in the console?
@tomjw64
config folder is not being created? So isnt config file? :o
@supayoshi
give groups the negative permission of 'mcmmo.skills.axes'.
For bPermissions this would be:
- ^mcmmo.skills.axes
PermissionsEx:
- -mcmmo.skills.axes
@tomjw64
So how did you disable the skill in Mcmmo? :D
@supayoshi As far as being able to run together, yes. I run an RPG server with both McMMO and BattleAxe. However, I disabled the mcmmo axe skill with permissions. When it comes to both plugins functioning flawlessly together, my best guess would be no. One of the plugins is likely to take a higher priority when increasing axe damage. Any information that you could supply would be very useful for future development though.
@tomjw64
Does this work with mcmmo? :D
@kahlilnc
Thanks! :)
Nice. :D