TeamUlysses / ulx

ULX: A powerful administration addon for Garry's Mod
https://ulyssesmod.net
Other
163 stars 72 forks source link

ULX dosen't unban when timer runs out #218

Open Warmarcus opened 9 months ago

Warmarcus commented 9 months ago

Expected behavior

ULX need to unban when timer runsout

Actual behavior

Dosen't unban

Error(s) in server console, if any

uniqueid "STEAM_0:0:425895348" not found Writing cfg/banned_user.cfg.

after the time run out: Warmarcus (STEAM_0:0:425895348)<80.208.69.165:5376> was kicked by ULib because they are on the ban list

Error(s) in player's console, if any

Version

v3.73

zpetty33 commented 3 months ago

I've confirmed that when a timed ban expires, it doesn't remove the ban from the ban table until the server is restarted. Need to investigate more for a fix.

SticklyMan commented 3 months ago

@zpetty33 Seems like I was attempting to solve this issue with XGUI back in the day. It's been years, but maybe this code is trying to help? (Or making things worse lol)

https://github.com/TeamUlysses/ulx/blob/master/lua/ulx/xgui/server/sv_bans.lua#L277C1-L286C5