Filled Prison Donor Ranks Fix

Discussion in 'Plugin Requests' started by mchungames4441, Dec 21, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    mchungames4441

    Hello!

    I own a Prison server, and I recently added donor ranks to the server. However, when someone buys a donor rank, it doesn't let them rank up until I fix it manually.

    Permissions Plugin: PermissionsEX v1.23 - http://dev.bukkit.org/bukkit-plugins/permissionsex/
    Rankup Plugin: Rankup v1.3.1 - http://dev.bukkit.org/bukkit-plugins/rank-up/

    Basically, here's what's happening:
    For Rankup to be able to rank players up, it needs the "prison" rank (the letter) to be the first one in the player's list of groups. When somebody buys a donor rank, it puts that rank at the top of the list. When this happens, Rankup looks at the donor rank instead of the prison rank, and it doesn't let the player rank up until I manually put the prison rank back at the top. Is there any way that I could make it put the donor rank below the

    Plugin category: Fixes

    Suggested name: I honestly have no idea...

    Background Info: I own a Prison server, and I recently added donor ranks to the server. However, when someone buys a donor rank, it doesn't let them rank up until I fix it manually. I am using PermissionsEX v1.23 (http://dev.bukkit.org/bukkit-plugins/permissionsex/) as my permissions plugin, and Rankup v1.3.1 (http://dev.bukkit.org/bukkit-plugins/rank-up/) as my rankup plugin.

    Basically, for Rankup to be able to rank players up, it needs the "prison" rank (the letter) to be the first one in the player's list of groups, because it only reads the first group. When somebody buys a donor rank, it puts that rank at the top of the list. When this happens, Rankup looks at the donor rank instead of the prison rank, and it doesn't let the player rank up until I manually put the prison rank back at the top.

    What I want: I want this plugin to fix the problem that I described in Background Info. I'm not a good coder, so I can't code this myself, but I have a pretty good idea of how coding works, so I'll explain exactly what I want the plugin to do so that this can be fixed.

    Whenever a rank is added to a user with the command "/pex user {user} group add {group}" (preferably when it comes from the console, since that's what the donor rank plugin uses to add the rank when a purchase is made), right before the group is added, the plugin should read through the PermissionsEX file, and find the first group of that user the same way that Rankup does. The plugin should save the name of that group as a variable. Right after, the donor rank (or whatever rank is being added from the command) will be added by PermissionsEX. Afterwards, the plugin will add the name of the rank which was saved as a variable back to the player.

    However, if possible, I would like the plugin to not do anything if a group is added to the user mchungames4441 (that's me). I don't want this happening to me, because sometimes I have to test new groups and it might screw things up. It should work for anyone besides mchungames4441, though.

    So here is an example of how things would flow: say Notch was at rank M and he bought the rank ExampleGroup. First, the donor rank plugin would make the console enter "pex user Notch group add ExampleGroup". Next (before PermissionsEX does anything), the first rank in his rank list will be removed since M was the first rank. Afterwards, PermissionsEX does its thing and adds ExampleGroup to his list of ranks. Finally, the M rank will be given back to him. ExampleGroup ends up being below M, allowing him to rank up to N. However, if the user mchungames4441 is rank O and he buys ExampleGroup, the plugin will not do anything, and PermissionsEX will put ExampleGroup on top of O like it normally does.

    Ideas for commands: No commands are needed.

    Ideas for permissions: No permissions are needed.

    When I'd like it by: As soon as possible - until I get this plugin, I will need to fix the groups of everyone who buys a rank myself.

    Sorry this is so long, but hopefully the length of it will make it easier for someone to code this. Let me know if there's any information that is unclear or if there is any additional info that you need. Thank you for your time.

    - mchungames4441
     
    Last edited: Dec 21, 2014
  2. Offline

    XvXRainbowzZ3D

    Is no-one makes this plugin i have a suggestion.

    Instead of Rankup use EZRanksLite http://dev.bukkit.org/bukkit-plugins/ezrankslite/
    Then when someone buys a rank have the command set to /pex group <Group name> user add <Player name>
    Then any other commands you want.
     
  3. Offline

    Orgys

    What he said, use eZRL and then on BuyCraft when someone buys a rank use the command:
    'pex user {name} group add {rankname}'
     
  4. Offline

    mchungames4441

    Actually, I checked that plugin out and it seems like it'll be a lot more stable. Rankup was pretty buggy overall. Thanks so much!
     
  5. Offline

    XvXRainbowzZ3D

    Yeah, EZRanksLite is alot better, easy config and configurable scoreboard, but if your using 1.7.X of minecraft Use any version of EZRanksLite under 1.6 as 1.6 is for minecraft 1.8 and wont work on 1.7.X, sorry if that didnt make sense :p
     
  6. Offline

    mchungames4441

    Actually, I just configured EZRanksLite and it doesn't fix the problem. EZRanksLite also only looks at the first rank. I just reread all of your posts and realized that none of you seem to understand what I'm asking.

    This is what my donation plugin already does, as I stated in my original post, but when it does it, it puts the donor rank above the prison rank, so the rankup plugin cannot read the prison rank - it reads the donor rank and doesn't find anywhere to rank up. As I already stated, I need a plugin that saves the first rank in the list for the player as a veriable and removes it whenever the command /pex user {user} group add {group} is executed from the console, but before the donor rank has time to be given. The prison rank should be given back right after so that the prison rank is on top instead of the donor rank.

    I don't need a plugin that has an easy config, I need a plugin that fixes my problem. I'm not saying that Rankup isn't working, I'm saying that it doesn't work well with my donor ranks because the donor ranks are being placed on top of the prison ranks. I need a plugin that removes the prison rank right before the donor rank is added, and adds it back after. Next time, please at least read some of the original post before replying.

    In conclusion, just so nobody is still confused, I do not want a better rankup plugin. I want a plugin that fixes the problem of donor ranks being placed on the top of the list, because when this happens the rankup plugin cannot read the prison rank, and I need to fix it manually whenever someone donates to my server.
     
  7. Offline

    XvXRainbowzZ3D

    No body will make a plugin to fix, when theres plugins out there which have what you need and are better
     
  8. Offline

    mchungames4441

    You didn't read either one of my posts, did you? I said that EZRanksLite did NOT have what I need. And I didn't say I wouldn't use EZRanksLite.

    Let me simplify what my last post said.

    1. I'm not looking for a better plugin.
    2. EZRanksLite does not fix my problem.
     
  9. Offline

    XvXRainbowzZ3D

    I did read them, i was just making a suggestion.
     
  10. Offline

    mchungames4441

    No you weren't.
    ^ That is not a suggestion. I need a plugin coded that will fix this problem, not a plugin that's "better". ^

    Why can't anyone code this? I even explained exactly how the plugin would work... :/
     
  11. Offline

    XvXRainbowzZ3D

    Not every plugin request is made, just wait and someone might make it
     
  12. Offline

    timtower Administrator Administrator Moderator

  13. Offline

    extended_clip

    Yes. This topic has been discussed several times and what the Op is trying to accomplish is possible with EZRanksLite. I made a post a while back explaining what is needed to be done to integrate EZRanksLite with players that have multiple permission groups attached. The information can be found at the link below.
    http://www.spigotmc.org/threads/donation-ranks-for-prison-servers.26731/page-2#post-337369

    The solution is very simple. Just apply weights to each group in the correct order where rankup ranks carry a higher priority or "weight".
     
    Last edited: Dec 23, 2014
  14. Offline

    mchungames4441

Thread Status:
Not open for further replies.

Share This Page