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
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
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. https://github.com/C0nw0nk/Garrys-Mod-Family-Sharing/issues/2#issuecomment-280861379
When IP Ban setting is enabled, To allow IP addresses to be unbanned add / modify the offence on banhook via
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.