ULX

Author Topic: allow only ulx ranks or usergroup on server  (Read 1487 times)

0 Members and 1 Guest are viewing this topic.

Offline raymond4000

  • Newbie
  • *
  • Posts: 2
  • Karma: -1
allow only ulx ranks or usergroup on server
« on: July 06, 2014, 04:55:31 PM »
I was wondering if anyone knows of a way to only allow users on a server that only have a rank or certain user group.

So in other words you would be unable to join the server unless you were apart of a specific usergroup.

Thanks!

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: allow only ulx ranks or usergroup on server
« Reply #1 on: July 06, 2014, 07:06:57 PM »
Hello,
you should take a look at the PlayerAuthed hook here.
So now you only need the check the players usergroup and kick disallowed usergroups accordingly.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: allow only ulx ranks or usergroup on server
« Reply #2 on: July 06, 2014, 09:57:33 PM »
I'm pretty sure you could enable ULX reserved slots in mode 1 with slots avail as same number of server maxplayers and perform same function.
Then you'd have to grant any of the groups (or inherit from another) the reserved slot access. "ulx reservedslots" I think.
Or maybe that's mode 3.
I always get them mixed up.
https://github.com/Nayruden/Ulysses/blob/master/ulx/data/ulx/config.txt#46 <-- straight text config explanation, can be done in XGUI too though.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming