C0nw0nk / Garrys-Mod-Family-Sharing

Prevent players bypassing existing bans on Garrys Mod Servers via steam family sharing / shared accounts or buying a new GMod. Banned messages and banning lengths configurable with lots of extra useful custom features such as a ban tracker / tracking. This script is guaranteed to make players regret receiving a ban from your server in GarrysMod / GarryMod / Garry'sMod / Garry's Mod / G Mod / G-Mod familysharing alts / alternative are a thing of the past. familysharing / familyshared checks / checker / checked / checking. lua script addon addons

Home Page:http://www.networkflare.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO : IP Address Unban compatibility

C0nw0nk opened this issue · comments

Posting this as a todo issue for myself for another time.

Based of my following solution that allows both family shared and the account that is the owner of that shared accounts games to be unbanned at the same time. #2 (comment)

When IP Ban setting is enabled, To allow IP addresses to be unbanned add / modify the offence on banhook via

RunConsoleCommand("ulx", "banid", lenderSteamID, time, offence .. "| IP:1.2.3.4")

Do regex check $ for end of offence reason where matched | IP:.*$

And on unban hook get the IP if exists from offence reason to unban their IP too.

if ply:query(string.lower(commandName)) and string.lower(commandName) == "ulx unban" then
--do stuff if global ipban setting enabled then allow users to also have their ip's removed from banlist if found
--pull the IP from the ban reason on the matching STEAMID
RunConsoleCommand("removeip 1.2.3.4")
RunConsoleCommand("writeip")
end

oh my god it's been 4 years and tempbans are still perma when ip banning is enabled
please do something