Autorank

Autorank

380k Downloads

Multiple Values

DevonPalma opened this issue ยท 0 comments

commented

Alright so I'm working on a server which I want prestige type deal which is later used. My current ranking system has 6 basic paths it can follow and at the end of each path I have it set to run these commands

'say &p Prestiged from Excavator; ar set &p 3h; pex user &p group set Ascendant; pex user &p add god.1'

excavator is my final rank in that certain path while ascendant is the starting point to which all the ranking paths are accessible

When you go through all the 6 ranks you end up with 6 different dummy perms (god.1 god.2 god.3 god.4 god.5 and god.6)

My problem is that I want a "secret" god type path which I don't want to be able to be seen in the /ar view list. the only think around i could do however was to make it so if you have all the god.# permissions you will autorank up without having to actually choose the rank it just does it for you when you try /ar check from Ascendant. This is my best attempt at trying what my problem is but I don't know whether you can set multiple permissions, or if there is another way to make sure all the players have gone through all the ranks (I would prefer to not use items)

Ascendant:
        requirements:
            time:
                value: 4h
            permission:
                value: god.1, god.2, god.3, god.4, god.5, god.6
                results:
                    message: 'Seems your ready to be a god'
                    rank change: Member;DemiGod
                    command:  'broadcast &6&p becomes a god'
                options:
                optional: true
                auto complete: true
    results:
        rank change: Ascendant;Drifter
        message: 'Welcome to the Explorers Path way, First Assessment: Drifter'
    options:
        display name: Explorer

and here is the full file

ranks:
#basic ranks
    Guest:
        requirements:
            time:
                value: 1h
        results:
            rank change: Guest;Member
            message: 'Trainy Level: Member'
    Member:
        requirements:
            time:
                value: 2h
        results:
            rank change: Member;Human
            message: 'Trainy Level: Human'
    Human:
        requirements:
            time:
                value: 3h 
        results:
            rank change: Human;Ascendant
            message: 'Trainy Level: Ascendant'
#Explorer path
    Ascendant:
        requirements:
            time:
                value: 4h
            permission:
                value: god.1, god.2, god.3, god.4, god.5, god.6
                results:
                    message: 'Seems your ready to be a god'
                    rank change: Member;DemiGod
                    command:  'broadcast &6&p becomes a god'
                options:
                    optional: true
                    auto complete: true
        results:
            rank change: Ascendant;Drifter
            message: 'Welcome to the Explorers, First Assessment: Drifter'
        options:
            display name: Explorer
    Drifter:
        requirements:
            time:
                value: 5h 
        results:
            rank change: Drifter;Traveller
            message: 'Next Assessment: Traveller'
    Traveller:
        requirements:
            time:
                value: 6h
        results:
            rank change: Traveller;Seeker
            message: 'Next Assessment: Seeker'
    Seeker:
        requirements:
            time:
                value: 7h
        results:
            rank change: Seeker;Explorer
            message: 'Next Assessment: Explorer'
    Explorer:
        requirements:
            time:
                value: 8h
        results:
            rank change: Explorer;Archeologist 
            message: 'Next Assessment: Archeologist'
    Archeologist:
        requirements:
            time:
                value: 9h
        results:
            rank change: Archeologist;Excavator
            message: 'Final assessment: Excavator'
        options:
            display name: Excavator
    Archeologist-copy-1:
        requirements:
            time:
                value: 9h
        results:
            rank change: Archeologist;Mineralogist
            message: 'Final Assessment: Mineralogist'
        options:
            display name: Mineralogist
#timelord path
    Ascendant-copy-gallifreyan:
        requirements:
            time:
                value: 4h
            permission:
                value: 'god.1; god.2; god.3; god.4; god.5; god.6'
                results:
                    message: 'Seems your ready to be a god'
                    rank change: Member;DemiGod
                    command:  'broadcast &6&p becomes a god'
                options:
                    optional: true
                    auto complete: true
        results:
            rank change: Ascendant;Gallifreyan
            message: 'Welcome to the TimeLords, First Assessment: Gallifreyan'
        options:
            display name: TimeLord
    Gallifreyan:
        requirements:
            time:
                value: 5h
        results:
            rank change: Gallifreyan;Prydon
            message: 'Next Assessment: Prydon'
    Prydon:
        requirements:
            time:
                value: 6h
        results:
            rank change: Prydon;TimeLord
            message: 'Next Assessment: TimeLord'
    TimeLord:
        requirements:
            time:
                value: 7h
        results:
            rank change: TimeLord;Cardinal
            message: 'Next Assessment: Cardinal'
    Cardinal:
        requirements:
            time:
                value: 8h
        results:
            rank change: Cardinal;Chancellor
            message: 'Next Assessment: Chancellor'
    Chancellor:
        requirements:
            time:
                value: 9h
        results:
            rank change: Chancellor;Sophist
            message: 'Final Assessment: Sophist'
        options:
            display name: Sophist
    Chancellor-copy-1:
        requirements:
            time:
                value: 9h
        results:
            rank change: Chancellor;President
            message: 'Final Assessment: President'
        options:
            display name: President
#magic path
    Ascendant-copy-reader:
        requirements:
            permission:
                value: 'god.1; god.2; god.3; god.4; god.5; god.6'
                results:
                    message: 'Seems your ready to be a god'
                    rank change: Member;DemiGod
                    command:  'broadcast &6&p becomes a god'
                options:
                    optional: true
                    auto complete: true
            time:
                value: 4h
        results:
            rank change: Ascendant;Reader
            message: 'Welcome to the Magicians, First Assessment: Reader'
        options:
            display name: Magic
    Reader:
        requirements:
            time:
                value: 5h 
        results:
            rank change: Reader;Scholar
            message: 'Next Assessment: Scholar'
    Scholar:
        requirements:
            time:
                value: 6h
        results:
            rank change: Scholar;Caster
            message: 'Next Assessment: Caster'
    Caster:
        requirements:
            time:
                value: 7h
        results:
            rank change: Caster;Mage
            message: 'Next Assessment: Mage'
    Mage:
        requirements:
            time:
                value: 8h
        results:
            rank change: Mage;Enchanter
            message: 'Next Assessment, Enchanter'
    Enchanter:
        requirements:
            time:
                value: 9h
        results:
            rank change: Enchanter;Celestial
            message: 'Final Assessment, Celestial'
        options:
            display name: Celestial
    Enchanter-copy-2:
        requirements:
            time:
                value: 9h
        results:
            rank change: Enchanter;Conjourer
            message: 'Final Assessment: Conjourer'
        options:
            display name: Conjourer
#presitge
    Excavator:
        requirements:
            time: 10h
        results:
            command: 'say &p Prestiged from Excavator; ar set &p 3h; pex user &p group set Ascendant; pex user &p add god.1'
    Mineralogist:
        requirements:
            time: 10h
        results:
            command: 'say &p Prestiged from Mineralogist; ar set &p 3h; pex user &p group set Ascendant; pex user &p add god.2'
    Sophist:
        requirements:
            time: 10h
        results:
            command: 'say &p Prestiged from Sophist; ar set &p 3h; pex user &p group set Ascendant; pex user &p add god.3'
    President:
        requirements:
            time: 10h
        results:
            command: 'say &p Prestiged from President; ar set &p 3h; pex user &p group set Ascendant; pex user &p add god.4'
    Celestial:
        requirements:
            time: 10h
        results:
            command: 'say &p Prestiged from Celestial; ar set &p 3h; pex user &p group set Ascendant; pex user &p add god.5'
    Conjourer:
        requirements:
            time: 10h
        results:
            command: 'say &p Prestiged from Conjourer; ar set &p 3h; pex user &p group set Ascendant; pex user &p add god.6'