ULX

Author Topic: ULib Gatekeeper - Group Based Whitelisting for ULib  (Read 9114 times)

0 Members and 1 Guest are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
ULib Gatekeeper - Group Based Whitelisting for ULib
« on: August 11, 2013, 06:50:55 AM »
In response to: http://forums.ulyssesmod.net/index.php/topic,6542.0.html

ULib Gatekeeper

Description:
This module for ULib hooks into ULib's authentication system and only allows whitelisted players to join the server.

The whitelist is controlled through ULib access strings. I'll touch on that in a second.

By default only admins can join a server if ULib GateKeeper is enabled. To add more people or groups:
ulx groupallow <group> "ugate_allowaccess" --This will allow anyone in a group to join.
ulx userallow <user> "ugate_allowaccess" --This will allow a specific player to join.

You can also completely enable and disable the system dynamically. This CVar should archive (saving it's most recent setting across server sessions), though if it does not, note that the default setting for this is enabled.

ugate_enabled 0 --System is disabled
ugate_enabled 1 --System is enabled
« Last Edit: August 11, 2013, 07:20:53 AM by MrPresident »

Offline chadreed93

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: ULib Gatekeeper - Group Based Whitelisting for ULib
« Reply #1 on: August 11, 2013, 12:10:21 PM »
Thank you very much!

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: ULib Gatekeeper - Group Based Whitelisting for ULib
« Reply #2 on: August 15, 2013, 07:18:55 AM »
Now where have I seen this.  :P
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULib Gatekeeper - Group Based Whitelisting for ULib
« Reply #3 on: August 15, 2013, 08:16:47 AM »
Now where have I seen this.  :P

Some guy named chaos made something similar, didn't he?
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULib Gatekeeper - Group Based Whitelisting for ULib
« Reply #4 on: August 15, 2013, 10:53:11 AM »
Yours is similar but different.

Mine allows whole groups to be white listed, where yours requires individual players to be added.

Not to mention it's a whole 18 lines of code. Yours was a bit more complicated than what I felt the original requester was asking for.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
Re: ULib Gatekeeper - Group Based Whitelisting for ULib
« Reply #5 on: August 15, 2013, 12:51:29 PM »
Yours is similar but different.

Mine allows whole groups to be white listed, where yours requires individual players to be added.

Not to mention it's a whole 18 lines of code. Yours was a bit more complicated than what I felt the original requester was asking for.

Did someone actually request something like this? I honestly almost never check Dev's Corner. Interesting..
When I was making mine, I actually made it by accident, which it then came to the possibility of actually making so sort of whitelist thing.

You're indeed is more interesting, because of it's 18 lines of code. :)
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULib Gatekeeper - Group Based Whitelisting for ULib
« Reply #6 on: August 15, 2013, 02:11:18 PM »
Like I said. They both have their merit.

For a whitelist plugin where you can manage users easily, yours would be my choice/recommendation.