ULX

Author Topic: Question regarding ULib group / user handling  (Read 1656 times)

0 Members and 2 Guests are viewing this topic.

Offline EdyTheCow

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Question regarding ULib group / user handling
« on: November 11, 2016, 01:10:12 PM »
Asking this a bit different way and not involving the addon this time, because I think you misunderstood my question. Sorry for confusion.

What would happen if a player was a part of group called "rank1" and I force deleted that group from groups.txt. The player would still be part of "rank1" according to users.txt. What would ulib / ulx do then? Does it move user to default rank if group is not found?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Question regarding ULib group / user handling
« Reply #1 on: November 12, 2016, 04:15:35 AM »
In this specific situation, ULib creates the group "rank1" which inherits from "user" when that player next joins the server.
Experiencing God's grace one day at a time.

Offline EdyTheCow

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Question regarding ULib group / user handling
« Reply #2 on: November 13, 2016, 01:02:42 PM »
Thanks! That's pretty interesting.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Question regarding ULib group / user handling
« Reply #3 on: November 13, 2016, 02:10:49 PM »
If you're curious, the reasoning behind that is that any addon can theoretically set a user's group, and the default GMod configuration allows arbitrary groups. These are ways to set groups outside of ULib's control (rightly so), so ULib does the best it can in that circumstance and registers it as a new group, inheriting from "user".
Experiencing God's grace one day at a time.