PrisonRankup
PrisonRankup
The highest-rated and most practical rankup plugin designed specifically for the ever-popular Prison server is finally here. This plugin features a unique database built into the config to house each individual player’s rank to prevent losing ranks, glitching out of the system, and allowing multiple groups to be compatible with popular permissions plugins, including PermissionsEX and GroupManager. Accessing player’s information has never been easier, as one can simply type “/rankup get (name)” to retrieve the player’s display name, rank, and current balance. In order for the balance feature to work, as well as the plugin itself, Vault is required.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Commands:
/rankup - Ranks the sender up to the next available rank (prisonrankup.rankup)
/rankup set (player) (rank) - Sets the given player to the given rank (prisonrankup.set)
/rankup stats (rank) - Receive statistics of a rank given (prisonrankup.stats)
/rankup create (rank) (price) - Create a rank in-game (prisonrankup.stats)
/rankup get (player) - Retrieve a player profile (prisonrankup.get)
/rankup reload - Reloads the config.yml (prisonrankup.reload)
/rankup update - Update PrisonRankup (prisonrankup.update)
/ranks - Shows you available ranks (prisonrankup.ranks)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Default Configuration File:
# Welcome to configuring PrisonRankup, I will be here to guide you through this config setup # First let me introduce myself, I am Mazen. I consider myself an expert in configuring Plugins and YAML configs and an advanced Java developer # First thing I want you to do is to set the prefix (What comes before the message) for the plugin to use. Keep the speech marks please to avoid errors. Prefix: '&a[&bPrison&6-&bRankup&a]' #Do not touch this! version: 3.0 # Next thing I want you to do is set the message you want it to be when somebody ranks up. Keep the speech marks here as well. # The %player% will be replaced with the players name, and the %rank% will be replaced with the rank they ranked up to. Rankup BC Message: '&3%player% &6has ranked up to &3%rank%' # Now, the most important part of this plugin is the rankup ladder groups: #Heres an example of the format of how it should be: # rank name:price #DO NOT REMOVE THE # FROM THE ABOVE! - A:30 - B:100 - C:300 #Here, I will be asking you to put the first rank on the ladder in this example A First Rank: 'A' # As well as the last rank to assure that we can message the player that he is at the end of the ladder Last Rank: 'C' # This message is the message we will send to the player if he is the highest rank. Highest Rank MSG: '&6 You are already the highest rank!' # This next one is if you want to use a timed requirement for your rankup system, set it to true if yes. Default is false; Timed Requirement: false # Now we're if you set it to true you will have to set a certain time that you want to be done for the rank requirement Time Interval: 0.0 # Here you will write what the time is based on, seconds, minutes or hours. Spelling does matter! Time type: Seconds # If you want, I added an option where you can choose if you want to make it so that the interval is added to every Rankup Sequence Interval on all ranks: false # Now you're almost there! Theres just one last part, If you're switching from Rankup and/or majority of Rankup plugins set this to true. If not, set it to false. # What this does is check if the player has a rank that is listed in groups (Every minute) and if so, makes a profile with that rank. Transfer ranks to profile: false # Set the next item to false if you do not want to use the updater update: true # Set this to true if you wish to enable debug mode debug: false # This is the format of the ranks which will appear when a player does /ranks #Variables are: %price%, %rank% ranks-format: '&5[&3%rank%&5]&6: %price%' # Here, is the message the player will recieve when he doesn't have enough money to rankup #Varaibles are the same as the ones shown above not-enough-money: '&6You need &2$%price% &6 to rankup to &2%rank%'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Switching
Are you switching from another Rankup plugin? Simple! Set the “Transfer ranks to profile” option to “true” in the config.yml!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.8 Compatibility
1.8 compatibilities with UUIDs have been implemented in version 2.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using the Sign Integration
You can make signs that work for PrisonRankup like this (You require the permission prisonrankup.sign):

Then, once you place it you will get something like this:

And congratulations! Now you have a sign that be used to Rankup!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Plugin Updater
As of Version 1.3 I have integrated an updater to the plugin, just do /rankup update to Update the plugin. You may disable this feature by setting updater to false in the config.yml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PrisonRankup Connects to Mojangs Servers
As of the UUID Update, PrisonRankup connects to 'sessionserver.mojang.org' as well as 'api.mojang.com' to fetch UUIDs and names.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found a bug? Report it!
Have a bug you ran into? You want something added to the plugin? Click here!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Source (for educational purposes only)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JavaDocs
PrisonRankup now has JavaDocs for v3.0+! You can check it out here!

-
View User Profile
-
Send Message
Posted Jun 21, 2014not-enough-money: and ranks-format: in the config don't work (as in the message doesnt change when you type /ranks /rankup Please fix :3
-
View User Profile
-
Send Message
Posted Jun 20, 2014@sppecknav
This is due to your permissions system
@Lilmacaroni
You may need to restart your server and load up the config with that set, however, I will look into it.
@masef21
Update Vault to the latest version
-
View User Profile
-
Send Message
Posted Jun 20, 2014@mazentheamazin
here is the error. http://pastebin.com/EyArknsE
-
View User Profile
-
Send Message
Posted Jun 20, 2014So when someone joined my server they did not have the [A] or any rank in front of their name. Could this be essentials?
-
View User Profile
-
Send Message
Posted Jun 20, 2014@kyledag500
I too would appreciate something like this.
-
View User Profile
-
Send Message
Posted Jun 20, 2014I've noticed when changing this line in the Config.yml
not-enough-money: '&7You need &a$%price% &7to rankup to &6%rank%'
It actually doesn't change it and sets it as the default colour(s).
-
View User Profile
-
Send Message
Posted Jun 20, 2014@mazentheamazin
Damn i'm terrible at figuring out that regex stuff so i guess i'm stuck with no commas xD
-
View User Profile
-
Send Message
Posted Jun 20, 2014@xGoldenPandax
As of my knowledge, rank-format supports regex, so you can use that. Otherwise, I have thought you meant something else (initally)
-
View User Profile
-
Send Message
Posted Jun 20, 2014@mazentheamazin
How would i do that? i don't understand the concept of the commas every 3 numbers.
-
View User Profile
-
Send Message
Posted Jun 19, 2014@kyledag500 It already exists (PRPlayer is mainly the class you want to look at for the methods you have described)
@FnFG100
Please explain, do you want to have PrisonRankup run in-sync on all servers?
@masef21
Send the error , your config, and your data.yml file (All in pastebin please)
@xGoldenPandax
Well, PrisonRankup splits each rank at every line at /ranks. However, you can modify it through ranks-format.
-
View User Profile
-
Send Message
Posted Jun 19, 2014I have a question. is it possible to get commas in the /ranks list? so it's like
A:0 B:50,000 ?
-
View User Profile
-
Send Message
Posted Jun 19, 2014still get an internal error when trying to use the /rankup commands. please help.
-
View User Profile
-
Send Message
Posted Jun 19, 2014Please add an API for plugins such as scoreboards to hook into. Things like .getCurrentRank(), .getNextRank(), .getRankupPrice().
Would be greatly appreciated!
-
View User Profile
-
Send Message
Posted Jun 19, 2014I have a server and it is 4 seperate servers and i want this plugin to be used in the PrisionBreak Server and i'm using GroupManager what can i do
-
View User Profile
-
Send Message
Posted Jun 18, 2014@SirNickParks
Rather the A rank doesn't exist (case sensitive), or, KyleParks's rank in the data.yml is defined incorrectly.
-
View User Profile
-
Send Message
Posted Jun 18, 2014rankup set KyleParks A
[13:02:39 WARN]: Unexpected exception while parsing console command "rankup set KyleParks A" org.bukkit.command.CommandException: Unhandled exception executing command 'rankup' in plugin PrisonRankup v2.5 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:688) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at net.craftservers.prisonrankup.Models.Rank.<init>(Rank.java:26) [?:?] at net.craftservers.prisonrankup.Models.PRPlayer.<init>(PRPlayer.java:48) [?:?] at net.craftservers.prisonrankup.SubCommands.Set.onCommand(Set.java:32) [?:?] at net.craftservers.prisonrankup.Models.CommandHandler.onCommand(CommandHandler.java:53) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit.jar:git-Bukkit-1.7.9-R0.1-6-g4d832c3-b3090jnks] ... 8 more
I can't run any commands, they all throw ArrayIndexOutOfBoundsException's and Nulls on all commands
-
View User Profile
-
Send Message
Posted Jun 18, 2014@SuperRonanCraft
v2.6 is stable, you're using the wrong version of Vault. Please update.
-
View User Profile
-
Send Message
Posted Jun 18, 2014Im trying to just RankUp with default config and i'm getting this error { 18.06 03:29:02 [Server] INFO ... 13 more 18.06 03:29:02 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [Bukkit_Dev.1.7.9.jar:git-Bukkit-1.7.9-R0.1-1-g5786276-b3085jnks] 18.06 03:29:02 [Server] INFO at net.craftservers.prisonrankup.Models.CommandHandler.onCommand(CommandHandler.java:42) [?:?] 18.06 03:29:02 [Server] INFO at net.craftservers.prisonrankup.SubCommands.Rankup.onCommand(Rankup.java:30) [?:?] 18.06 03:29:02 [Server] INFO at net.craftservers.prisonrankup.Models.PRPlayer.canRankup(PRPlayer.java:135) [?:?] 18.06 03:29:02 [Server] INFO Caused by: java.lang.NoSuchMethodError: net.milkbowl.vault.economy.Economy.getBalance(Lorg/bukkit/OfflinePlayer;)D } I do think this plugin is not stable since one of the earlier releases. Any ideas why it's not woking?
-
View User Profile
-
Send Message
Posted Jun 18, 2014@Tonixzmac
There are no updated ones, there are already a tutorial through the comments though.
-
View User Profile
-
Send Message
Posted Jun 18, 2014Need a tutorial Video for the config, if you have one please link it here that would be helpful.