Inactive [GEN] RankUp V1.4 - Switch groups through Signs/Words/Commands [Perms3][PermsBukkit][PEx] [1000-60]

Discussion in 'Inactive/Unsupported Plugins' started by toalec, Jul 24, 2011.

  1. Offline

    toalec

    I will no longer publicly update this plugin. If you are a developer and have interest in taking it over, the source is readily available.

    I am also not providing support for issues with this plugin. Sorry to all those who it affects.



    RankUp - Switching groups through Signs/Words/Commands
    Version: 1.4

    This plugin allows you to set packages that define a transition between groups. The player is then able to enact that transition through right clicking certain signs, saying certain words or manually through the /rankup command.

    Features:
    • Allows for easy GreyListing
    • Individual Permissions for each package
    • Supports Permissions 3.1.6
    • Supports PermissionsBukkit v1.1
    • Supports PermissionsEx 1.13
    • The target player of /rankup <player> does not have to be online(They have to have alteast logged in once though)
    • Easy to set up using commands from in-game or the console(which uses the same commands but without the /).
    • Supports multiple packages
    Permissions: (open)


    Code:
        rankup.*:
          Gives access to all RankUp commands
        rankup.signplace:
           Allows you to place a [RankUp] sign.
        rankup.rankup.*:
           Gives you access to /rankup for all packages.
        rankup.ru.*:
           Gives you access to all utility commands.
        rankup.ru:
           Menu for all of the utility commands.
        rankup.ru.enable:
           Allows the user to enable RankUp, and RankWord
        rankup.ru.disable:
           Allows the user to disable RankUp, and RankWord
        rankup.ru.setword:
           Allows the user to set the RankWord word
        rankup.ru.setstarting:
           Allows the user to set the starting rank
        rankup.ru.setending:
           Allows the user to set the ending rank
        rankup.ru.addpackage:
           Allows the user to add a new package
        rankup.ru.removepackage:
           Allows the user to remove a package
        rankup.ru.reload
          Allows the user to reload the plugin
    

    Commands: (open)

    Code:
        rankup:
            Upgrade a player's rank to and from the ones specified in a certain package. If you leave out the package argument it defaults to default.
            usage: /rankup <player> [package]
        ru:
            Menu for all of the utility commands.
            usage: /ru
        enable:
            Enable the /rankup command and the word through here. If you leave out the package argument it defaults to default.
            usage: /ru enable <command|word> [package]
        disable:
            Disable the /rankup command and the word through here. If you leave out the package argument it defaults to default.
            usage: /ru disable <command|word> [package]
        setword:
            Lets you set the word. If you leave out the package argument it defaults to default.
            usage: /ru setword <word> [package]
        setstarting:
            Lets you set the starting group, the one that generally does not have build rights. If you leave out the package argument it defaults to default.
            usage: /ru setstarting <Default Group> [package]
        setending:
            Lets you set the ending group, the GreyListed one. If you leave out the package argument it defaults to default.
            usage: /ru setending <GreyListed Group> [package]
        addpackage:
            Lets you add a new package
            usage: /ru addpackage <Package Name>
        removepackage:
            Lets your remove a package
            usage: /ru removepackage <Package Name>
        reload
            Lets you reload the plugin
            usage: /ru reload
    

    Example Configs: (open)

    Code:
    default:
        startingGroup: user
        endingGroup: admin
        rankup_command_enabled: true
    
    This package moves a player from the user group to the admin group. The only method enabled is the /rankup command.
    Code:
    test:
        startingGroup: default
        endingGroup: user
        rankup_word_enabled: true
        rankup_word: test
        rankup_sign_enabled: true
    
    This package moves a player from the default group to the user group. This can happen through the player saying the secret word in chat 'test', or through them right clicking a certain sign.

    How to Create Signs (open)

    Type [RankUp] on the first line of the sign, and the package name on the third line. If you want to use the default package just leave the third line blank. You must have the permission node rankup.signplace to be able to place [RankUp] signs.


    Download
    Source

    ToDo List: (open)



    Credits: (open)

    @coolblinger
    -Stole sign rank idea from him/her


    Changelog:
    Version 1.0
    • Plugin release
    Version 1.1

    • Added utility commands to help with managing of the config.yml
    • You can now set a secret word that when typed allows a person to move to the greylisted rank. This word will not show in the chat.
    Version 1.2

    • Fixed that if PermissionsBukkit was being used to handle groups, you were able to create fake users. This is no longer possible.
    Version 1.3

    • Added support for multiple greylists(packages).
    • Optimized code.
    Version 1.4

    • Added support for individual package permissions.
    • Added support for PermissionsEx(Does not support multi-worlds).
    • Added signs as a way to trigger packages.
     
    GmK likes this.
  2. Offline

    Poe

    for todo list...can you make it so only mods can rank up defaults? or something like that. A group can only rank up a certain group to a certain group...such as rankup.rankup.default.member
     
  3. Offline

    KungFuJack3

    I still dont get it. The commands spoiler is no help at all. It looks more like the commands with jibberish
     
  4. Offline

    toalec

    Make sure that when you are testing using both Permissions and PermissionsBukkit, that the character you are trying to rank up has logged in atleast once, otherwise that character will not show up in the PermissionsBukkit config.yml.
    The message that you are recieving occurs when RankUp doesn't the find the player in both permissions plugins, or it doesn't find the starting group in both permissions plugins.
    I don't see anything evidently wrong, and I got it working on my private server with almost the same config files, but I don't have access to my main computer right now, so I will try to get to the bottom of this problem when I can. :D

    Sure, on the todo list. :)

    What do you not get? How to use the plugin, or what the plugin does?
    The commands spoiler is just copypasta from the plugin.yml so sorry if it is incomprehensible.
    I just updated the How-To*, so try now.
    *I forgot to update it after 1.3, my bad. The How-To is pretty much the same, if you could tell me where your confusion lies, I could better help. :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  5. Offline

    KungFuJack3

    Well, it would be better if you could tell me how to make more ranks because it justs shows the first rank. It would be better if you said how to add more ranks instead of just having the first one. Do you copy and paste the first one and change the rank name or do you have to type something else?
     
  6. Offline

    toalec

    Yep so for example:
    Code:
    default:
        startingGroup: 'default'
        endingGroup: 'admin'
        rankup_command_enabled: false
        rankup_word_enabled: true
        rankup_word: 'new'
    OtherGreylistNameHere:
        startingGroup: 'default'
        endingGroup: 'user'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    
    So then say you wanted to manually rank someone up using the second greylist, you just specify which one. /rankup [player] OtherGreyListNameHere instead of /rankup [player] which just uses the default greylist.
     
  7. Offline

    Superhykle

    Hello,
    If I typ /rankup popshizzle its says /rankup has been disabled go find help XD

    so here is my rankup config
    Code:
    groups:
        Guest:
            default: true
            info:
                prefix: ''
                suffix: ''
                build: false
            inheritance:
            permissions:
                - 'essentials.spawn'
                - 'essentials.list'
                - 'essentials.who'
        Member:
            default: false
            info:
                prefix: '&2'
                suffix: ''
                build: true
            inheritance:
                - Guest
            permissions:
                - 'essentials.warp'
                - 'essentials.home'
                - 'essentials.sethome'
                - 'lwc.unlock'
                - 'essentials.back'
                - 'essentials.help'
        Trusted Member:
            default: false
            info:
                prefix: '&3'
                suffix: ''
                build: true
            inheritance:
                - Guest
                - Member
            permissions:
                - 'essentials.ban'
                - 'essentials.kick'
        Trial Admin:
            default: false
            info:
                prefix: '&5'
                suffix: ''
                build: true
            inheritance:
            permissions:
        Admin:
            default: false
            info:
                prefix: '&c'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - '*'
        Owner:
            default: false
            info:
                prefix: '&4'
                suffix: ''
                build: true
            inheritance:
            permissions:
                - 'rankup.*'
    
    And here my permissions groups
    Code:
    Guest:
        startingGroup: 'default'
        endingGroup: 'Member'
        rankup_command_enabled: True
        rankup_word_enabled: false
        rankup_word: ''
    Member:
        startingGroup: 'Member'
        endingGroup: 'Trusted Member'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Trusted Member:
        startingGroup: 'Trusted Member'
        endingGroup: 'Trial Admin'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Trial Admin:
        startingGroup: 'Trial Admin'
        endingGroup: 'Admin'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Admin:
        startingGroup: 'Admin'
        endingGroup: 'Admin'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Owner:
        startingGroup: 'Owner'
        endingGroup: 'Owner'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Thank you

    Just changed startinggrouop at Guest it was default and changed it to guest but diddnt work

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  8. Offline

    zecheesy

    HELP!
    Code:
    21:42:31 [INFO] [RankUp] default
    21:42:31 [INFO] [RankUp] true
    21:42:31 [SEVERE] Could not pass event PLAYER_CHAT to RankUp
    And this is what my file looks like:
    Code:
    default:
        startingGroup: Gweilo
        endingGroup: Noob
        rankup_command_enabled: true
        rankup_word_enabled: true
        rankup_word: gimmecheese
    Can you make it work with permissions 2.7.3????

    All of the rank commands do not support 2.7.3 ):!


    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  9. Offline

    Junrall

    I love this plugin!
    However,RankUp and McMyadmin don't play well together.
    The problem is that whenever there is a change done in McMyadmin's Group screen McMyAdmin rewrites
    the users.yml file... which overwrites any changes made by RankUp.
    Is it possible to implement a true/false setting that will tell RankUp to write to globaluser.yml instead of the user.yml?

    I'm using the latest Permissions plugin.
     
  10. Offline

    RazielV

    I tried the command on my server and it told me it there was an issue with the config file i have no idea how to check it or what it is i have Permissions 3.1.6
     
  11. Offline

    ewized

    dose this work with the permissions 3.1.5 globalusers and globalgroup
     
  12. Offline

    toalec

    Uncapitalize the "T" in true in the default group. I think "true" is a keyword in YAML, while "True" is a String.

    If you don't mind can you post the entire log? From what you gave me the only thing I can guess is that you have multiple RankUp jars in the /plugins folder.

    Permissions 2.7 doesn't support Permissions groups. I suggest you use PermissionsBukkit and SuperPermBridge as you will still be able to use all Plugins that use Permissions 2.7, and also RankUp.
    As far as I know the Permissions API doesn't support modification of the global users and global groups. About the problems with mcmyadmin, those shouldn't occur and I will look into them :).

    I think the idea behind gobal users and groups is that they aren't supposed to be modified by other plugins. I am using the Permissions API to interface with it, so it won't use globalusers and globalgroups as of right now as this isn't supported by the API(as far as I have seen, someone please let me know if I am wrong :D).

    Go to your server folder /plugins/RankUp and open the config.yml.
     
  13. Offline

    Superhykle

    nope diddnt work, made some changes in my rankup file here is new one

    Code:
    default:
        startingGroup: ''
        endingGroup: ''
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Guest:
        startingGroup: 'default'
        endingGroup: 'Guest'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Member:
        startingGroup: 'default'
        endingGroup: 'Trusted Member'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Trusted Member:
        startingGroup: 'default'
        endingGroup: 'Trial Admin'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Trial Admin:
        startingGroup:  'default'
        endingGroup: 'Admin'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Admin:
        startingGroup: 'default'
        endingGroup: 'Admin'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
    Owner:
        startingGroup: 'default'
        endingGroup: 'Owner'
        rankup_command_enabled: true
        rankup_word_enabled: false
        rankup_word: ''
     
  14. Offline

    Junrall

    I don't think your plugin is the culprit. McMyAdmin should be looking at the users file for changes by plugins and then update itself and the file accordingly. It should be blindly overwriting it whenever there is a change in it's own "Users and Groups" panel. I'm sure this a low priority for them ;)
     
  15. Offline

    fatmarley

    @toalec can this be use with permissionsex? I am having major issues with it...
     
  16. Offline

    PhonicUK

    Bear in mind that McMyAdmin does not read YML data for users and groups with a given plugin. MCMA only has an exporter (McMyAdmin style groups written out in a format compatible with the various plugins) and not an importer.

    In order to get MCMA to perform promotions, you'd have to write out addmember and delmember commands to the console to modify the appropriate groups.
     
  17. Offline

    Junrall

    Sure would be great if MCMA could read from the YML data... based on the Permissions Exporting setting.
    As it is... it can get a bit frustrating to use great plugins like RankUp.
    Though, I do understand that MCMA developers can't just whip up patches for every plugin that comes out!:)
    Even so, MCMA does support Permissions (and others) to a degree... and many plugins make use of Permissions. A single patch, like reading from the YML, for Permissions would be beneficial to many plugins.

    Ok... enough about MCMA... lol... I still like this plugin... I just have to be careful and keep a backup of my users.yml file. I may just switch of the Permissions setting in MCMA and make all my edits directly.
    Not a big deal.
     
  18. Offline

    PhonicUK

    YML importing is unlikely to happen any time soon I'm afraid. SQL support is more likely though.
     
  19. Offline

    toalec

    Does it still give you the same message, "The /rankup command is disabled."? If so check the formatting of the file as the only thing that can provide that message is if
    Code:
     rankup_command_enabled: true 
    is set to anything else. Also because the startingGroup and the endingGroup of the default package are null strings, I assume you mean to use another package. To do that just specify the package at the end of the command. ie. /rankup popshizzle Member

    I didn't know there was a need for PermissionsEx support, but now that I do I will definitely look into it. Sadly, I am on vacation right now, so it will be some time before I can start working on it.
     
  20. Offline

    Don Redhorse

    hmm.. so you can only move the player from one group into the other?
    fine if yes, but are you thinking about making a "chain" of ranks? guest-builder-vip-mod ? together with limitations on how far you can promote?
    how does multiworld support work? just adding the world at the end of the greylist?
     
  21. Offline

    toalec

    I'm not sure what you mean by the chain of ranks, or by limitations, but right now you can do something like this:
    Code:
    //This doesn't contain all of the necessary fields to actually function as the config.yml
    default:
        startingGroup: default
        endingGroup: builder
    vip:
        startingGroup: builder
        endingGroup: vip
    mod:
        startingGroup: vip
        endingGroup: mod
    
    If this isn't what you were talking about, let me know.
    I am also going to add permissions for individual greylists. if that's what you meant by limitations.

    RankUp supports multiworld in that it will modify the specific world over global if the Permissions plugin you are using supports it. It doesn't allow you to set a required world that the user must be in to rank up. Is that what you are looking for?
     
  22. Offline

    Retricide

    Can you add permission "per package."

    Like, 'rankup.rankup.<package>'?
     
  23. Offline

    Don Redhorse

    Well that is chaning but you need 3 different packages for that.. together with the permissions per greylist it would almost meet the requirements.

    I would like to have a list like this..

    Code:
    //This doesn't contain all of the necessary fields to actually function as the config.yml
    default:
        startingGroup: default
        intermediate Groups: builder,vip
        endingGroup: mod
    
    and than a check that vip can only promote to builder
    yes and yes... but for me the last one isn't really that important
     
  24. Offline

    Superhykle

    its says that my config.yml is messed up but i cant find the problem
     
  25. Offline

    zecheesy

    Does this work with permissions 2?
     
  26. Offline

    toalec

    It's on the todo list, but I am on vacation right now so I may not be able to work on it for some time.

    Well I am glad that you will be able to recreate your desired result once greylist permissions are introduced. I am going to keep the format of the packages the same though because I feel like your case is a slightly special one, so I hope that it isn't too much trouble to organize it with multiple packages. :)

    Do you think that you can PM your server log, the config.yml, your permissions plugin's files and what commands you are using? The reason being that the "messed up config" message is given for varying reasons, but if I had all the information I would be able to find the cause. :)

    No sorry, Permissions 2.X does not support groups. I would suggest you use SuperPermBridge and PermissionsBukkit instead.
     
  27. Offline

    Don Redhorse

    yeah, no problem. I will probably create aliases for it.... have to check that
     
  28. Offline

    GmK

    @toalec

    Am using this and love it! (PermissionsBukkit).

    Am now thinking about switching to PEX due to better caching and general support, would this work with it? As PEX gives compability to Permissions 3.x plugins somehow. But not sure, so - I'll just ask you ;)
     
  29. Offline

    toalec

    I just added PEx support last night, so it will be directly supported by 1.4(Released today, most likely). I have had people tell me that RankUp works with PEx as of right now though , because of PEx's Perms3 support.

    New version

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  30. Offline

    Kaikz

    1.4 works perfectly with PEX!
     
    toalec likes this.
  31. Offline

    GmK

    Switched to PEX, updated to 1.4, Rankup stopped working immediately :( All else works. Using PEX with sql. Any idea where to start looking for the reason?

    I cant even run any commands from the console anymore.


    ---edit---


    Checked on startup - any idea why it doesnt recognize PEX while other plugins do?

    Code:
    2011-08-26 12:38:40 [INFO] [RankUp] Loading...
    2011-08-26 12:38:40 [INFO] [RankUp] PermissionsBukkit, Permissions 3, or PermissionsEx not detected.could not be detected.
    2011-08-26 12:38:40 [INFO] [RankUp] Disabling plugin...
    2011-08-26 12:38:40 [INFO] [RankUp] Disabled!
    2011-08-26 12:38:40 [INFO] [RankUp] Finished!
    
    ---edit 2--

    I set PermissionsEx as "depend: [PermissionsEx]" in the plugin.yml and now it works...it was simply loading before Permissions loaded :)
     
    toalec likes this.

Share This Page