WeaponLevels
Weapon Levels
Features
- Weapons, Armor, Tools and other items gain experience as you use them and level up!
- As they level up, weapons and items deal bonus damage!
- Items gain enchantments as they level up!
- Experience bar and level shown under the item name in the inventory!
- Permissions!
Description
WeaponLevels allows you to level up your weapons and tools as you use them, making them more powerful! The level and experience are displayed right under the item name, adding a slick new look to your server! Every time you hit or kill a mob or player, the weapon you're using will gain experience. As it levels up, it's damage will increase and the color of the item name will change.
Video by Samkio and Torrent!
Item Stages
Stages can be set in stages.yml. As your items level up, they will reach each stage and receive the color, enchantments, and any bonuses that are set.
Commands
- /wl version - Shows the current version of the plugin.
- /wl reload - Reloads the plugin config files. OP only.
- /wl setlevel <level> - Sets the level of the currently held item.
Permissions
- weaponlevels.* - Allows all items.
- weaponlevels.<stage> - Allows <stage> items
- weaponlevels.setlevel - Allows use of /wl setlevel
Enchantments
Enchantments can be set for each level stage in the config. The list of enchantments is separated by commas. Each enchantment is formatted with two numbers separated by a period. The first number is the ID of the enchantment (Click here for the ID list), and the second number is the level of the enchantment. So if the enchantment is "5.3", it would be Respiration III. Or, if it were "17.5", it would be Smite V.
Upcoming Features
- Integration with RPGItems, MagicalWeapons, PVPGun+, and DiabloDrops
- More information in item descriptions (damage/armor, special effects, etc.)
- Weapons gain durability as they level up
- ...let me know of any other ideas you have for new features!
>> Source Code <<
>> Developer API <<
NOTICE
Version 1.2.6 has been posted and is awaiting approval by a moderator before it will be available for download.
Please note that this is a development build that was rushed in order to fix multiple bugs from the previous version, so use it at your own risk. I had to rush it because I'm going on vacation for a week and will not be able to code during that time.
Some changes to be noted:
- Now uses only 4 config files: config.yml, stages.yml, groups.yml, items.yml
- Stages.yml defines all of the stages.
- There is now a "bonuses" section that contains things such as damage, armor, etc.
- Ignore groups.yml and items.yml for now; they haven't been fully implemented yet.
- When fishing, you can now receive fish of different levels; the higher level your fishing rod, the higher chance you have of catching high-level fish
- Stages now have a "food" bonus which increases the fullness you gain from eating food of that level
- Many items have their experience bars removed; this will be configurable in the next update
If you have any questions about the new system, or bugs you have found, please leave me a private message and I will get back to you as soon as I can.
Donators
GleeCraft: $50 (gleecraftmc.com)
Donations are greatly appreciated and allow me to spend more time working on the plugin! Let me know the name of your server when you donate and I'll add your server to the list above!
Yea it's not working for me either. Would love this plugin for my RPG server
Help! Meet this error and fail to load the plugin using spigot-1.5.2-R0.2-SNAPSHOT & WeaponLevels v1.2.5:
2013-06-19 23:45:52 [INFO] [WeaponLevels] Enabling WeaponLevels v1.2.5 2013-06-19 23:45:53 [SEVERE] Error occurred while enabling WeaponLevels v1.2.5 (Is it up to date?) java.lang.NoClassDefFoundError: de/bananaco/bpermissions/imp/YamlConfiguration at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:87) at org.bukkit.plugin.java.JavaPluginLoader.getClassByName0(JavaPluginLoader.java:300) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:83) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at com.coffeecup.novus.weaponlevels.Config.<clinit>(Config.java:17) at com.coffeecup.novus.weaponlevels.Plugin.onEnable(Plugin.java:50) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:383) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugin(CraftServer.java:305) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.enablePlugins(CraftServer.java:287) at net.minecraft.server.v1_5_R3.MinecraftServer.j(MinecraftServer.java:310) at net.minecraft.server.v1_5_R3.MinecraftServer.e(MinecraftServer.java:289) at net.minecraft.server.v1_5_R3.MinecraftServer.a(MinecraftServer.java:249) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:152) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:388) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.ClassNotFoundException: de.bananaco.bpermissions.imp.YamlConfiguration at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:87) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 28 more
What should I do? 0.0
Best?
does not generate config files for 1.5.2 server.
Alright, well apparently, despite what i thought would prevent it, the plugin still seems to ignore worldguard.
So, I have deleted 1.2.6 and will add support for worldguard before re-posting. Sorry about that, guys.
EDIT: The problem was that WorldGuard hogs event priority, when I assumed it wouldn't. The problem is now fixed, awaiting approval from a moderator.
@Makemyday17
Holy shit. I thought you were just dumb, but I tested it on my server, and I used a 2nd computer to break blocks in my WorldGuard protected spawn, and they were able to break it! I just tested it, I disabled WeaponLevels, and they couldn't break it anymore.
SERVER OWNERS, DO NOT USE 1.2.6 YET, your protected areas can be griefed!
I really like this plugin, but I will temporarily delete it for now. Hopefully it will be fixed.
@AlesisJC Hmm, I'll have to look into the harvesting problem. The plugin uses block.getDrops() so it should get the actual drops of the item. This may be a bug in bukkit, but regardless I will add extra code for harvesting. I will also look into the name and config bugs.
@Makemyday17 I'm very sorry about that, but that's strange. None of my testers have reported this happening and you can see for yourself the code that checks if the block break was canceled.
1.2.6 worked, but when I installed it I went to eat on a restaurant with my family, meanawhile people destroyed spawn that was protected with worldguard before. I'm not exactly sure how, but they said remove "levels on items thingy"! My theory is that with the leveld items they can destroy protected areas, pelase make this work together with worldguard. Or whatever the problem is, DONT INSTALL 1.2.6 SERVER OWNERS, my server just got compltely griefed....
Thankyou TheRealNovus for this, I know you mentioned you were going on vacation soon but the last two fixes have been a major help. No more console spamming errors, brilliant work to you.
Edit: I have three problems: Players have mentioned with the Plugin they only receive the same item back on harvest and no additional resources. Example: Plants a carrot - only gets 1 carrot back. -Disables WeaponLevels - Try again and get two - five carrots. Tested this numerous times to make sure.
Also noted that when harvesting items, they go into the players inventory as 'Name Item' like 'Carrot Item' so you end up with two items of 'Carrot' & 'Carrot Item' which is causing a lot of issues for players with all their inventory being taken up by unique names with 'item' on the end.
Thirdly: I tried disabling ID's of individual items in the config and doesn't seem to work. using ID comma space like 5, 10, 120 Nor does the config option of Disable normal items: False, items still continue to level and come back as 'name Item' Just though let you know as it does kinda prevent me from using the Plugin until farming works normally and items don't come up in separate names & level up. :)
Cmon mann atleast go on Skype so we can talk
@GagiO2
Ah... that's technically a different bug. I'll fix that too. My bad.
silktouch bug again in creative mode only.
Thank you all for posting the bug, I am working on it right now and will re-upload version 1.2.6 with the fix.
EDIT:
Version 1.2.6 has just be re-uploaded to fix the "silk-touch" bug. You can get it here. (unapproved)
@GagiO2 I have included in the new version some code to help figure out the problem. If you get the error again, check for a message that says "Error reading experience data for x (line x)". Then, copy and paste that line so I can see where the error is. Thank you.
same
Also am seeing the, silktouch bug, after doing some config item editing they started dropping both so stone would drop 1 stone 1 cobblestone block. edit: Also not sure if this is intentional and it might be linked to the dropping bug I just stated but members were able to bypass world guard by mining blocks inside a protected area, it wouldn't break the block but it would give them a copy of it if they mined it.
edit:2 Also was giving levels to normal blocks like stone and any of the ore it silk touched.
i seen some bug in game when player breaking any block will get item like using silktouch
only bug i got was this
20:14:33 [severe] Could not pass event PlayerAnimationEvent to WeaponLevels v1.2.6 20:14:33 [javastacktrace] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 20:14:33 [javastacktrace] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 20:14:33 [javastacktrace] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 20:14:33 [javastacktrace] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1015) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.Packet18ArmAnimation.handle(SourceFile:41) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) 20:14:33 [javastacktrace] at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 20:14:33 [javastacktrace] Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 20:14:33 [javastacktrace] at com.coffeecup.novus.weaponlevels.item.LevelDataManager.getExperience(LevelDataManager.java:91) 20:14:33 [javastacktrace] at com.coffeecup.novus.weaponlevels.item.LevelData.readLevelData(LevelData.java:139) 20:14:34 [javastacktrace] at com.coffeecup.novus.weaponlevels.item.LevelData.<init>(LevelData.java:32) 20:14:34 [javastacktrace] at com.coffeecup.novus.weaponlevels.Events.onAnimate(Events.java:66) 20:14:34 [javastacktrace] at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source) 20:14:34 [javastacktrace] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 20:14:34 [javastacktrace] at java.lang.reflect.Method.invoke(Unknown Source) 20:14:34 [javastacktrace] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
Thank you for the update ... :) i will report any problems if any :)
work great for me! just install "RPG Item" http://dev.bukkit.org/bukkit-mods/rpg-items/
Version 1.2.6 is out! You can get it here (unapproved)
Source Changes:
Game Changes: