XPStrength
XPStrength
You can allow players to achieve bonuses at certain levels - when they have a certain level, defined by you, they will get a certain bonus to their attack damage, defined by you. You can define as many levels as you want.
Features
- Toggling - You can use /xpbonus to toggle the level-attack bonus. If your level is lower than the lowest level defined by you (the script works this out automatically from the config file) then it will not let you use the /xpbonus command. If you are above the lowest level, you toggle the /xpbonus on and then you drop to below level 30 (see XP draining) it will be automatically turned off. The player's /xpbonus saves.
- Permissions - The permission node is xpstrength.bonus. If the player doesn't have this, they will not be able to use any of the XPStrength features.
- XP draining - You will (configurable) lose xp every time you hit. There is a 50% chance that you will lose xp (you will lose the amount of hearts that you hit - take away 10 hearts and you lose 10 xp), a slightly-less-than-50% chance that you will not lose xp, and a 1% chance that you will lose double the amount that you hit.
- User-friendly config - There is a configuration file that allows the user to modify all the levels and their bonuses easily. It uses .txt rather than .yml to avoid the pesky tab errors.
- Customisable language files - There is a file containing every message sent by the plugin, so the user can customise every single message at the touch of a button.
- Level cap - You can set a level cap that players cannot bypass.
Installation
To install, simply place the .jar in your /plugins/ folder and start the server. Inside /plugins/XPStrength/ you can find the user's accounts (I'm not sure why you'd want to edit these, although if for some reason a user's account breaks, submit a bug report and then delete the file.)
The plugin will automatically create a config file using some default values for you to get the idea of how to modify it, although for more information on the configuration file you can click here.
The plugin will automatically create a language file uses the default English values. You can modify the language file yourself by reading it, although for more information on the language file you can click here.
A configuration editor has been kindly created by papand13 and can be found here.
Permissions
There are two permissions nodes for XPStrength.
- xpstrength.bonus - this allows the player to gain a damage bonus from XPStrength.
- xpstrength.bypass.cap - this allows the player to bypass the level cap.
- xpstrength.bypass.drain - this allows the player to bypass the experience drain.
Thanks!
Thanks for reading, and possibly using my plugin. If you have any suggestions or bugs, submit them and I will look at the bugs and consider the suggestions!
Helping
Are you interested in helping develop XPStrength? Head over to the GitHub repository and fork it in order to contribute. Thanks for the help!
Plugin still alive? I tried it and it didn't seem to have any effect? If I have a +7 sword do I need +8 bonus damage to get +1 damage?
@z65703071
Nope, I'm still here and I think the plugin still works :)
Isn't dead?
@jameskmonger
Thank you very much! :)
It has now been added and just needs to be verified by Bukkit. You'll need to add this line to config.txt, where the number is the amount of half-hearts needing to be dealt before 1 xp point is lost.
@CommodoreAlpha
Brilliant suggestion - I will start planning this soon. Thanks!
Instead of losing xp on a "1 point 1 heart" basis, could you somehow make this configurable? (e.g. lose one exp point for every three hearts of damage, rounded up.)
Version 2.5 is now published. You can give users the xpstrength.bypass.drain to stop their experience from being drained as they attack entities. Also, the level cap bypass permission has been changed to xpstrength.bypass.cap
Version 2.3 contains a level cap, which can be set in the configuration file. The player cannot go past that level, without the xpstrength.bypassCap permission node.
v2.2 has now been released and is pending approval. This release fixes the problem with reloading the server - reloads will no longer break it.
@Newiezz Hey Newieez - I'm glad you found the plugin okay, I hope you enjoy it!
What do you mean by a level cap? They can't level up past the given level?
I was searching this plugin for 2 months, :D U rock
Can you add a level cap, I mean: when someone hitts the level 99 (configurable) he simply can't get the level 100.
The plugin has now been updated for 1.6.4. Interested in helping? You can find the plugin on GitHub: https://github.com/Jameskmonger/XPStrength
@Ch3d I can help with the problem as long as I can see the errors - if I don't see the errors I don't know what the problem is! :P If you can't directly copy and paste from your console, paste the ENTIRE error from your server.log file and I'll look into it.
Hi ! I loooove your plugin, it's exactly what i want for my server but i've a problem ...
When i launch my server, all work fine but when my sentry (of mod Citizens/sentry) attack mobs, i have a lot of error in my console ...
It apparently has no effect on the server, but I do not know where all this conflict come ... Someone have the same problem ? And could it be fix ?
Thank !
Hello, sorry for being lazy - I was inundated with exams and completely forgot about this project when I came back! The plugin has now been updated and should work on the latest version of Bukkit.
UltrafaceGuy, I'll look into fixing the bow problem soon.
NOOOO! Why did this stop updating? D:?
Could you update this for 1.4.6? My server's economy runs on this plugin, pretty much.
@jameskmonger
No problem, I live to annoy plugin devs :>
@UltrafaceGuy
Okay, I'll have a look into it :P Thanks for reminding me