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 27, 2014@iNooBxJoKez
Enable debug to true and send the outcome.
-
View User Profile
-
Send Message
Posted Jun 26, 2014@mazentheamazin
mazentheamazin, I just wanted to come back and let you know that thanks to your advice I was able to fix the problem.
Thank you so much for you prompt and helpful reply, it is very much appreciated. :)
-
View User Profile
-
Send Message
Posted Jun 26, 2014Hi Mazen, I've been using your plugin for about 2 months, up till now its been fine.
Now, whenever someone new joins, they spawn with no group in the data.yml, it says group: ' ', I can manually fix this by putting A instead but I don't want that! I use GroupManager. Also, they get kicked when they try /rankup
Here is my PrisonRankup config: http://pastebin.com/DawtTKdR
Here is my GroupManager groups.yml: http://pastebin.com/DtnDN7un
I was on 1.7.9 Beta (which is 1.7.2-1.7.5 compatible) but I have updated to 1.7.9 Developer (which is 1.7.6-1.7.9) and it still doesn't work!
Also, since PrisonRankup wasn't working properly, players in for example: B, can't warp to B.
It would be REALLY appreciated if you could get back to me ASAP!
-
View User Profile
-
Send Message
Posted Jun 26, 2014@CharlesVien456
Rather your config.yml is defined incorrectly, or the player running the command in the data.yml contains a invalid rank.
-
View User Profile
-
Send Message
Posted Jun 26, 2014Im getting this error whenever anyone tries to /rankup, I just updated from v1.5 -> v2.6 we had 5 hours of downtime just so it could convert to the UUID and now it doesnt even work.
26.06 12:26:34 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.craftservers.prisonrankup.Models.CommandHandler.onCommand(CommandHandler.java:42) [?:?] 26.06 12:26:34 [Server] INFO at net.craftservers.prisonrankup.SubCommands.Rankup.onCommand(Rankup.java:29) [?:?] 26.06 12:26:34 [Server] INFO at net.craftservers.prisonrankup.Models.PRPlayer.<init>(PRPlayer.java:48) [?:?] 26.06 12:26:34 [Server] INFO at net.craftservers.prisonrankup.Models.Rank.<init>(Rank.java:26) [?:?] 26.06 12:26:34 [Server] INFO Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:489) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:583) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:283) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:720) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.ServerConnection.c(ServerConnection.java:81) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:180) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:65) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:830) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:999) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:726) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [Spigot.jar:git-Spigot-1496] 26.06 12:26:34 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'rankup' in plugin PrisonRankup v2.5 26.06 12:26:34 [Server] ERROR null
-
View User Profile
-
Send Message
Posted Jun 26, 2014@mazentheamazin
the custom message's in the config dont work like not-enough-money Please fix asap:) Also not 100% sure if Highest Rank MSG: works
-
View User Profile
-
Send Message
Posted Jun 25, 2014@BethePandaGames
Ah, just needed to erase the data thing. Thanks man :)
-
View User Profile
-
Send Message
Posted Jun 25, 2014How do i make a rank
-
View User Profile
-
Send Message
Posted Jun 25, 2014Hi Mazen, I think I have found a bug/glitch in you plugin with EssentialsChat. I have 6 Staff Groups for my server, Helper, Mod, TrialAdmin, Admin, HeadAdmin, CoOwner, Owner. So let us say I pick a person named "Test123" and I see he is ONLY in group A and has no other external permissions/groups. My Helper Group, has the chat http://pastebin.com/Rr1h8K0e and when I want to add Test123 to group Helper, (/pex user Test123 group add Helper) and he has his green chant (&a) and everything is fine. Although, when he /rankup his green chat dissapers and it makes it the chat for group B (Next Rank) Which is http://pastebin.com/SHSDdz5f. How do I fix this?
-
View User Profile
-
Send Message
Posted Jun 25, 2014@breeza936_2
Its their UUID, you'd need to figure that out by when the player joins (It should say what their UUID is, you just need to remove the dashes).
-
View User Profile
-
Send Message
Posted Jun 25, 2014@mazentheamazin
Thanks for the quick response, but how will I know what data is the players when all the details in data.yml are random combos of letters/numbers? I have no way to correlate the player name to the data. Or am I missing something?
-
View User Profile
-
Send Message
Posted Jun 25, 2014@breeza936_2
You'll need to reset his data profile in the data.yml
-
View User Profile
-
Send Message
Posted Jun 24, 2014Hi mazentheamazin,
Thanks for your plugin! We use it successfully on a OP prison server with ranks from A-Z. The problem we have at the moment is one player is unable to use the rankup command. Like just that player is glitched. We have debug set to true and this is what is outputted to console when this player tries to rankup.
Any suggestions would really be appreciated. Thank you.
-
View User Profile
-
Send Message
Posted Jun 24, 2014@kxpeep93
What do you expect me to do from what you have told me? Do I have magical powers that allow me to understand why my plugin isn't working for somebody? No, I don't. If you want help you need to send these things:
-
View User Profile
-
Send Message
Posted Jun 24, 2014@mazentheamazin it won't even start up
-
View User Profile
-
Send Message
Posted Jun 24, 2014PermissionsEX might help with your "money" thing. Hope this helps. :D
-
View User Profile
-
Send Message
Posted Jun 23, 2014@Fluby26
in your group manager or Pex is it named 1st, 2, 3,4, free? because they have to be the same name to work the right way. and i wold also try staining the names to something that is more then one letter or number if the first one does not work. one more thing if you have tested /rankup with that account you will have to erase the player data
-
View User Profile
-
Send Message
Posted Jun 23, 2014Hey so apparently i'm the first rank but when I try to rankup it says im at the highest possible rank, and no console errors. Chat: http://gyazo.com/3fd2b9d2e058d8453c56d9189e85abb8 Config: http://pastebin.com/r8xrsf4b
Any help? Thanks
-
View User Profile
-
Send Message
Posted Jun 23, 2014@mazentheamazin
I mean like this [Rank]PlayerName: Message
-
View User Profile
-
Send Message
Posted Jun 23, 2014Mazen,I don't have a windows computer i have a mac. And i went to the java website and it said that i have java 7 update60 thats what it said