ULX

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

0 Members and 1 Guest are viewing this topic.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
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 PM.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
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

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
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 PM.