[HELP]Plugin development

Status
This thread has been locked.

Morgan Freeman

Knowledge is power.
Banned
Feedback score
0
Posts
179
Reactions
47
Resources
0
How can i give a feature to set in a config how much XP a person needs to get to rankup? Can't seem to figure this out
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Shortninja

♥ Java Enthusiast ♥
Supreme
Feedback score
2
Posts
1,143
Reactions
734
Resources
0
This should have probably gone on Bukkit or Spigot forums..

However, you should probably elaborate a bit more. Do you mean ACTUAL XP or your own system?
 

Morgan Freeman

Knowledge is power.
Banned
Feedback score
0
Posts
179
Reactions
47
Resources
0
This should have probably gone on Bukkit or Spigot forums..

However, you should probably elaborate a bit more. Do you mean ACTUAL XP or your own system?
Actually XP and thanks for reply
 
Banned forever. Reason: Scamming

Shortninja

♥ Java Enthusiast ♥
Supreme
Feedback score
2
Posts
1,143
Reactions
734
Resources
0
Morgan Freeman Can you please point out what you can't find? That has all of the methods you would need it seems.

Is it just the config file part you don't get?
 

Shortninja

♥ Java Enthusiast ♥
Supreme
Feedback score
2
Posts
1,143
Reactions
734
Resources
0
Morgan Freeman In your config, you can do pretty much the same thing that the guy did in the post. The event they used in that post is also going to be necessary.
 

Shortninja

♥ Java Enthusiast ♥
Supreme
Feedback score
2
Posts
1,143
Reactions
734
Resources
0
Morgan Freeman Still don't necessarily get what you're asking, haha. If you have a config instance, "config.set()" is what you use..

Specifying the amount per level should probably be either in an enum or with some sort of algorithm for adding to each level or, if the amounts AREN'T hard coded, specifying the amounts would be in the config.
 

Morgan Freeman

Knowledge is power.
Banned
Feedback score
0
Posts
179
Reactions
47
Resources
0
Morgan Freeman Still don't necessarily get what you're asking, haha. If you have a config instance, "config.set()" is what you use..

Specifying the amount per level should probably be either in an enum or with some sort of algorithm for adding to each level or, if the amounts AREN'T hard coded, specifying the amounts would be in the config.
Thank you.[DOUBLEPOST=1443219311,1443219273][/DOUBLEPOST]
If you don't understand what he is saying then go back and ACTUALLY learn Java, YAML, and Bukkit API. It'll do some good Morgan Freeman
I think i have way more experince with Java then you.
 
Banned forever. Reason: Scamming

LOCO_X_KILLER

Feedback score
0
Posts
3
Reactions
2
Resources
0
Morgan Freeman
is this solved ?
because if not then, there is no spigot/bukkit/craftbukkit method yet that allows you to change the needed exp for a player to rankup from each level, i haven't got to decompile bukkit API but im pretty sure Level ranking up exp is handled by math and not a specific amount of exp per level, what you can do is check on the listeners/events of bukkit and see if there is a ExpChangeEvent and do your methods there! if you know java enough you should know how to...
 

Hunting_Potato

Developer
Deactivated
Feedback score
11
Posts
745
Reactions
425
Resources
0
if(player.getXP (something liek that) > config.getInt(WHERE XP IS stored)){
Rank up method



Gg
 
Status
This thread has been locked.
Top