Hey this is a Tutorial on using Prison-Rankup API Code:java // Get a rankRank rank = getRank("rank_name");// Get the price of a rank as a doubledouble price = rank.getPrice();// Get the price as a StringString priceString = rank.getPriceString(); // Get the PrisonRankup PlayerPRPlayer prp = getPlayer("playerName"); // Get Permission Rank (Taking from Vault directly)String s = prp.getPermissionRank(); // Get nextRankRank nextRank = prp.getNextRank(); // Get UUID (Easy way as stored onJoin) (Does not contain dashes)String s = prp.getStringUUID(); // Get his current rankRank rank = prp.getCurrentRank(); // Force the player to rankup, taking money when it is performedprp.rankup(); Now i will show you how you can use this in a scoreboard Code:java //Here is how to get how much money they need to for next rankdouble moneyToNextRank = economy.getBalance(Player) - rank.getPrice();
I don't mean to bash on your thread and I can understand it, of course. But, you labeled this is a tutorial and to me this seems like random code thrown into a thread without any background information on what the "Prison-Rankup API" actually is, and some links.
ko47374737 I agree with LegitJava, but along with not including what the Ranks class even is, little information, and it looks a bit rashly thrown together.
This maybe? http://dev.bukkit.org/bukkit-plugins/prisonrankup/ Anyways, yeah, I agree with the two above. Most of the methods you gave and described were pretty straight-forward with the method name.
Enjoy what? xTrollxDudex LegitJava Did I miss something, or did this guy not provide a link? All I see is a bunch of random lines of code that have no explanation on what they do. I always hate it when I see resources like this. Do not post in the resource section unless you ACTUALLY have a LEGITIMATE resource people WANT to use.
Ultimate_n00b BungeeTheCookie Cirno xTrollxDudex LegitJava ko47374737 Not to mention that he copied the code I gave to somebody here. *cough* You forgot to statically import all the methods in the PrisonRankup class Code:java import static net.craftservers.prisonrankup.PrisonRankup.*; *cough*