Author Topic: ULib.ucl.getInheritanceTree  (Read 171 times)

0 Members and 1 Guest are viewing this topic.

Offline iViscosity

  • Hero Member
  • *****
  • Posts: 699
  • Karma: 41
    • View Profile
    • iViscosity Gaming
ULib.ucl.getInheritanceTree
« on: August 16, 2017, 12:52:00 PM »
EDIT: Nevermind, I ended up going onto my own server and running it myself (the RCON tool didn't show the formatting so I wasn't sure), what I thought was the case.

EDIT2: I have a separate question though, how does ULX check if a player can target another player? Like, inheritance-wize?

I'm a bit confused about how ULib.ucl.getInheritanceTree() works. From the example it gives:
Code: [Select]
PrintTable( ULib.ucl.getInheritanceTree() )
user:
   trusted:
       members:
   thedumbones:
   admin:
       superadmin:
       serverowner:
       clanowner:
   respected:
does that mean like this (going down means higher in the chain)
Code: [Select]
user         —       thedumbones         —       admin         —       respected
  |                                                   |
trusted                                       superadmin         —       serverowner         —       clanowner
   |                                           
members
So in simple words, trusted inherits from user, and members inherits from trusted, then superadmin, serverowner, and clanowner inherit from admin, etc.?

Sorry if that doesn't really make sense I'm not really sure how to explain it.
« Last Edit: August 16, 2017, 01:04:56 PM by iViscosity »
I'm iViscosity. I like gaming and programming. Need some help? Shoot me a PM or Join my Discord!.
--==[ Links ]==--
Steam
YouTube
Steam Group (feel free to join!)
Forums
Public Discord

Quote from: Steve Jobs
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6185
  • Karma: 391
  • Project Lead
    • View Profile
Re: ULib.ucl.getInheritanceTree
« Reply #1 on: August 16, 2017, 02:26:56 PM »
For edit two, ULib.getUsers is called with the value of ULib.ucl.getGroupCanTarget, and now you have all the players the user can target. :)
Experiencing God's grace one day at a time.

Offline iViscosity

  • Hero Member
  • *****
  • Posts: 699
  • Karma: 41
    • View Profile
    • iViscosity Gaming
Re: ULib.ucl.getInheritanceTree
« Reply #2 on: August 16, 2017, 02:44:16 PM »
Ahhhh, that makes a lot of sense. Thanks :)

(I was wondering because of this :)))
I'm iViscosity. I like gaming and programming. Need some help? Shoot me a PM or Join my Discord!.
--==[ Links ]==--
Steam
YouTube
Steam Group (feel free to join!)
Forums
Public Discord

Quote from: Steve Jobs
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.