bPermissions and ranks

Discussion in 'Bukkit Help' started by chakyl, Jan 4, 2013.

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

    chakyl

    I've recently started using bPermissions for my server, and I allow people to buy ranks with in-game money. Problem is, when I use a certain commands, it overwrites their other group. If you don't understand;

    Bob joins the server as the group Guest.
    Bob want's to buy the rank with a command sign.
    Commands executed:
    /world world
    /user bob
    /user addgroup mage

    Now bob has two groups in his users.yml;
    - Guest
    - Mage

    Bob goes and earns so more money, and want's to buy the next rank.
    Commands executed:
    /world world
    /user bob
    /user setgroup archmage

    Problem is, is he now has these groups:
    - archmage

    When he should have:
    - Guest
    - archmage

    If I used the /user addgroup command, he would have these groups:
    - Guest
    - mage
    - archmage

    But I only want bob having the higher one; archmage.

    Is there a command which replaces a certain group with another? Sorry if this was confusing.
     
  2. Offline

    Ne0nx3r0

    Could you use setgroup, then addgroup?

    (Presuming you can execute two commands)
     
  3. Offline

    chakyl

    Yes, but what about the other rank? Members guests, and donators would have to have completely different areas to rank up.

    I don't know a lot about variabletriggers, but would this be possible with scripts? For instance;
    if group is Guest
    /user setgroup guest
    /user addgroup mage

    if group is member
    /user setgroup member
    /user addgroup mage

    etc.

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

    Ne0nx3r0

    Sorry, in your example you only listed 'Guest'.

    I'm not sure what all you have setup, but I imagine some combination of delgroup, addgroup, and setgroup could make this work.
    I'm not familiar with VariableTriggers, but that's probably possible.
     
Thread Status:
Not open for further replies.

Share This Page