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 Apr 21, 2014i changed it to how you have it but now i'm getting this error or errors.
http://pastebin.com/k9DGcgEj
-
View User Profile
-
Send Message
Posted Apr 21, 2014@mazentheamazin
ok thanks man! Also if you need someone to handel tickets for you I would be more than willing to help. I am rather good at solving issue with most any plugin and would like to help out
-
View User Profile
-
Send Message
Posted Apr 21, 2014@chrsgddrd
This is a bug in PrisonRankup v2.0 I have just uploaded v2.1 and am currently awaiting approval.
@Darknessorising
Hm, alright. 2 things:
1. Okay, I'll try and do some testing myself and see how it goes 2. If you were to add a player to a group with your permission plugin, PrisonRankup intercepts that, checks what rank you were adding, and updates them on both configurations. (Your permission plugin, and PrisonRankup's). Due to this, most probably I'll remove the set command within the next update or so.
-
View User Profile
-
Send Message
Posted Apr 21, 2014@mazentheamazin
OK when Someone does /rankup. It ranks them up to the next rank no problem. When I do /rankup set [Name] It sets them to 1 rank higher than I said. So if I did /rankup set {name} A it would set them to rank B..... Ok so I sorta figured it out myself. Its partly the plugin and partly me. When I do /rankup Set {Name} it doesnt set them to that rank. It automatically sets them to the next rank no matter what rank you try to set them to. So they are rank P and I set them to rank F. Well the plugin ranks them up to Q but says it made them F. but when I do /manuadd {NAME} F it works fine. So If your using pex/groupmanager you have to add them to the group manually and set their rank with rankup. But I still dont get why the plugin ranks them up to the next rank no matter what rank i set them to.
-
View User Profile
-
Send Message
Posted Apr 21, 2014@mazentheamazin
So Mazen did you find a way to deactivate it?
-
View User Profile
-
Send Message
Posted Apr 21, 2014Until you get custom colors set up, you should be pointing people to SimpleRanklist and MyCommand (for aliasing /ranks).
But I do have a question: when someone reaches top rank, they can still do /rankup and it demotes them 1 rank. They can continue to do this ad nauseum. Is this a known bug? Is a fix in the works? Or did I set something up wrong again?
-
View User Profile
-
Send Message
Posted Apr 21, 2014@Darknessorising
I'm confused, so when you do /rankup set {player} {rank} it sets the player to the rank that it after the one wished to be set. When you do /rankup get {player} it shows the correct one, and in the data.yml it shows the correct one. Where does it show the incorrect one?
-
View User Profile
-
Send Message
Posted Apr 21, 2014@mazentheamazin
It shows them as the rank I set them as using /rankup set
EDIT: However when I do /rankup set it says "set {NAME} rank to {rank} and it automatically sets it to a rank higher than what I put.
-
View User Profile
-
Send Message
Posted Apr 21, 2014@Darknessorising
If you look at the data.yml, lookup the player, what rank does it show there?
-
View User Profile
-
Send Message
Posted Apr 21, 2014@mazentheamazin
Ok well mazentheamazin I found an issue!! lol its not a huge issue but an issue none the less. When I do /rankup set {name} {rank} it automatically gives them 1 rank higher and says they are still in the rank that I set them at. So If I do /rankup set George C it gives George Rank D but then I do /rankup get George and it says he is at C rank.
-
View User Profile
-
Send Message
Posted Apr 21, 2014@Darknessorising
@giu1
Thanks Dark for providing the correct answer. No problem, its my job to make sure that the plugin is working.
-
View User Profile
-
Send Message
Posted Apr 21, 2014´Thanks Dark XD i dont like to be pushy but id like the answer mazen XD
-
View User Profile
-
Send Message
Posted Apr 21, 2014@mazentheamazin
update 2.1 Works perfectly for me. /ranks works and so does /rankup Not an issue with either version. Thanks for fixing it!
-
View User Profile
-
Send Message
Posted Apr 21, 2014@giu1
This is because your using the old format in the new version. The following is part of the ranks you have Soldado: 50000 VCabo: 150000 Furriel: 300000
When it should look like this - Soldado:50000 - VCabo:150000 - Furriel:300000
Hope I helped.
-
View User Profile
-
Send Message
Posted Apr 21, 2014Also im trying to set up the 2.0 and im using the config this way http://pastebin.com/FtRBB6RC but i dont understand if anything is wrong with it but it also gives me the a b c thing as did for the other player
-
View User Profile
-
Send Message
Posted Apr 21, 2014@mazentheamazin: Well when a player ranksup normally he has lets say Member a rank created on PEX and prefix by doing /rankup they lose the member rank and lose all permissions and sometimes even the rankup rank is lost so i need to give them both the rankup rank and Pex manually but after this happens once the problem never happens again when they do rankup
-
View User Profile
-
Send Message
Posted Apr 21, 2014@giu1
Can you explain your problem in a little bit more detail?
-
View User Profile
-
Send Message
Posted Apr 21, 2014@xmazentheamazin: listen is there a way to disable this cuz this way i have to add the PEX rank over and over when someone does rankup
-
View User Profile
-
Send Message
Posted Apr 21, 2014@xGoldenPandax
This is due to you're using the old format. The new system works with a List, not a configuration section. I changed up your config. You can get it here.
@giu1
This is not a bug with PrisonRankup, this is how it works. When a player ranks up, it removes the old rank they were in (Only if it is defined in the ladder), and replace it with the new one (for permission efficiency reasons).
-
View User Profile
-
Send Message
Posted Apr 21, 2014the update seems to be pretty stable. i can atleast rankup but theres a problem.
no matter how many times i change my config it still only shows the 3 ranks a,b,c at the default prices made in the config.
heres the pastebin. http://pastebin.com/1mBFBpWN
Heres the error log after i added all the ranks and made them look like the config before messed with http://pastebin.com/GmgvMnp1