1. Hi there! I'm currently using "newPackageRank" to get the players rank, and it works for the donator ranks, but I can't seem to get it to work for staff ranks (Admin, Helper, Mod, etc.). Is there a certain name for it I'm missing?

    Thanks!
    - Max
     
    #1
  2. Can you show us a code example or something? Kind of hard to help if you don't provide us with anything.

    Cheers,
    James
     
    #2
  3. Aaron1998ish

    Aaron1998ish {"title" : "SteveOP-erator", "teams" : ["bugs"]}

    aaron1998ish
    Mod
    Rebel ΘREBLΘ
    Co-Owner
    Messages:
    1,399
    You can find Staff and Youtuber ranks under the field 'rank':
    https://i.imgur.com/dddpWbv.png

    newPackageRank is post eula ranks
    and packageRank is pre eula ranks

    So theres a few places you need to check to get the users primary rank.
     
    #3
    • Like Like x 1
  4. minifreddusch

    minifreddusch Well-Known Member

    minifreddusch
    MVP+
    Messages:
    3,435
    Just to complete what @Aaron1998ish said, you'll have to go through the following fields by priority:
    Code:
    1. "rank" (if it's not empty or "NORMAL")
    2. "monthlyPackageRank" (if it's not empty or "NONE")
    3. "newPackageRank"
    4. "packageRank"
    
    If you want prefixes like [OWNER] to appear, you can get those as a step 0. from "prefix".
     
    #4
  5. Thank you! These two messages we're very helpful and I've now got it working. <3

    I didn't feel like it needed code, since I hadn't written anything about it yet, I was just inquiring about what field is was under :)
     
    #5
  6. mdashlw

    mdashlw New Member

    Messages:
    6
    Note that newPackageRank and packageRank can be "NONE" too.
     
    #6

Share This Page