BuyExp
Version: 0.6 - BETA
Tested with CraftBukkit 1.1 R6 and 1.2.3 and 1.2.4
This simple plugin allows a user (with the correct permission and the required money in their account) to purchase experience in the form of levels.
Installation
Copy the jar to your /plugins directory. Simples! Required plugins: Vault, any Vault supported Economy/Permissions
Usage/Setup
Permissions
- 'buyexp.buy' - Allows users to purchase XP at the rate defined in the config. Defaults to OP's.
- 'buyexp.free' - Allows users to bypass the economy, allowing them to get free XP. Defaults to False; no-one has it.
Commands
/buyexp <levels>, for example /buyexp 50 to buy 50 levels. The plugin also takes into account previous levels, so buying 10 while holding 5 will result in the user level being set to 15
Config
- PricePerLevel: This is the price per level
- NotifyConsole: This is whether the plugin will log transactions
- NotifyPlayer: This is whether the plugin will tell the player what they have purchased
- MaxLevelPerTransaction: This is the maximum amount of levels the player is able to purchase in one transaction
- MaxLevelInTotal: This is the maximum level the player can purchase up to; if the player is level 100, and this is set up for 150, they can only purchase 50 more levels
Future changes:
- -Better error handling
- -Usage of Signs to complete the transaction
- -More features
- -Assign other players levels, or buy other players levels - Will be added in next release: provided it is not a bug-fix
Please feel free to make (reasonable) requests. This is my first plugin and hopefully one which can become more useful.
I will continue this, when I have time.
@Fern_Silverthorn
Use my version. http://goo.gl/tDVtQ
@ellbristow
My version works, @Zorgonatis just needs to add me to the project.
@AStevensTaylor
Any news on this being updated? If not I may just have to add economy support to my setXP plugin?
When Will this be updated? I Really love your plugin and will miss it entill its updated
@Albuca
I would love to add this in, as long as you can write a line of java involving maths, or I could write a set piece, probably
price = [0.1 * (current level)] ^ 1.5 + (price for levels)
so if the current level was 100 and price for levels was 1000 each and you wanted 10 levels price = 0.1*(1000) + 10*1000
Guys, I will probably be taking over this project. Here is a build in the mean time to fix some issues. http://goo.gl/tDVtQ
Changelog: Rewrote most of the body, just kept the structure. Added in the buyexp.free support, default to false. Removed a random extra class. Fixed the exploit where trying to purchase lots of levels caused the player to be payed. Added a few bits to the config.
@Zorgonatis
kahlilnc Fri, 10 Feb 2012 23:16 Yeah holy crap man. . . if you do /buyexp 10000000000 or something with a huge number like that it will give you the levels and the money that it is worth. . .
Yeah holy crap man. . . if you do /buyexp 10000000000 or something with a huge number like that it will give you the levels and the money that it is worth. . .
There is an exploit. /buyexp 100000000
Gives the user a whole lot of money! Fix now!
@Zorgonatis
Waiting. . . lol my server revolves around exp. XD Cant wait
@Robert107
I have a few changes planned shortly, and will add this to the list.
@Zorgonatis
Hey! There is a chance that you can add a top lvl for buying? Cause when a player exceeds 100 levels the exp bar bugs! (I'm disabling exp orbs in my server so the only way to get them its buying!)
@surfarcher
Beta 0.5 is working for me 1.0.1 RB
NPE on CB#1559 with Spout, iConomy 6 and current Vault *cry*
+1 for vault support! +1 for Sign support
Inflation would be cool too, the more levels you currently have, the more it costs to buy more experience, therefore they either need to be rich, or they can buy some levels to get started, and then have to go hunt for the other levels. (These could be preset/variable values)
Also, sample config + pictures/video of it in action would be awesome!
Cheers!
It doesnt work to well while in creative mode ;(
@neokyle21
This is due to CraftBukkit changing the way Exp is set in game.
Would it be possible to set a price on each level with iconomy or something similer?
0.3 seems to be broken in the latest craftbukkit builds. When you buyexp it will give you a very high number, and even relogging your level doesnt change.