XP Plugin

Status
This thread has been locked.

Spenser

That guy!
Premium
Feedback score
38
Posts
3,427
Reactions
1,074
Resources
0
I need a plugin that will take x amount of xp and allow a user to execute a command 1 time. This will be gui based and the command is executed right after xp is taken. They have no permission for the command it is done to them. ie fix all , kit , fly , etc.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Vineetism

Feedback score
0
Posts
107
Reactions
35
Resources
0
I need a plugin that will take x amount of xp and allow a user to execute a command 1 time. This will be gui based and the command is executed right after xp is taken. They have no permission for the command it is done to them. ie fix all , kit , fly , etc.
so something like killing a mob gives you mob coins and then you can trade them in for ranks?
 

Tripps

SysAdmin | Developer
Premium
Feedback score
19
Posts
784
Reactions
313
Resources
0
I need a plugin that will take x amount of xp and allow a user to execute a command 1 time. This will be gui based and the command is executed right after xp is taken. They have no permission for the command it is done to them. ie fix all , kit , fly , etc.
Okay so basically you wanting them to spend experience instead of money, now for the gui what is it that you want in all of the slots?
 

Samuel

The most serious person ever.
Supreme
Feedback score
33
Posts
2,210
Reactions
1,572
Resources
0
Remember developers thinking that this might be an easy task, messing with xp levels using player.setExp(experience) is buggy when it comes to actually setting the player's level too.

Thankfully you can use this resource here: http://hastebin.com/yibudahiwo.cpp in order to properly set levels and experience.

Also if you want this plugin done add me on skype.
das code ist bad
 

Tripps

SysAdmin | Developer
Premium
Feedback score
19
Posts
784
Reactions
313
Resources
0
Remember developers thinking that this might be an easy task, messing with xp levels using player.setExp(experience) is buggy when it comes to actually setting the player's level too.

Thankfully you can use this resource here: http://hastebin.com/yibudahiwo.cpp in order to properly set levels and experience.

Also if you want this plugin done add me on skype.
Actually wouldn't this be better?
https://github.com/desht/dhutils/bl.../java/me/desht/dhutils/ExperienceManager.java
 

Samuel

The most serious person ever.
Supreme
Feedback score
33
Posts
2,210
Reactions
1,572
Resources
0
Said it was useful, not that the code quality was any good.
Either way I wouldn't class this as "bad" code, it's a fairly old implementation (that isn't mine), it uses the core maths behind the experience functionality within minecraft (which you can find here: http://minecraft.gamepedia.com/Experience)

Not bad code, just could be optimized a lot better, as seen by the example below.



Yes it would :) hadn't seen any other experience managers out there but I'm going to start using this now, thanks!
I'd argue that code can be optimised a lot better is bad code (even if it's mildly bad).
 

Tripps

SysAdmin | Developer
Premium
Feedback score
19
Posts
784
Reactions
313
Resources
0
Said it was useful, not that the code quality was any good.
Either way I wouldn't class this as "bad" code, it's a fairly old implementation (that isn't mine), it uses the core maths behind the experience functionality within minecraft (which you can find here: http://minecraft.gamepedia.com/Experience)

Not bad code, just could be optimized a lot better, as seen by the example below.



Yes it would :) hadn't seen any other experience managers out there but I'm going to start using this now, thanks!
No problem :)
Just did a little search and this one just happened to look a lot better, plus the project has more sources :D
 
Status
This thread has been locked.
Top