ServerMod / Smod2

SCP:SL ServerMod2
https://discord.gg/8nvmMTr
MIT License
68 stars 30 forks source link

IsBanned in OnDisconnect event is always false #105

Closed KarlOfDuty closed 4 years ago

KarlOfDuty commented 5 years ago

I've banned myself but it is still false when I try to join and get disconnected.

laserman367 commented 5 years ago

Isn't everything about OnDisconnect just fucky wucky? I'm pretty sure smod doesn't know who disconnected period, so it doesn't know any information about them

KarlOfDuty commented 5 years ago

Yeah, doesn't mean I can't complain about it.

laserman367 commented 5 years ago

I mean it kinda does, since there's no way to fix us not having any information about the person disconnecting :man_shrugging:

PatPeter commented 5 years ago

Can Smod2 maintain a map of IP Addresses connected to a list of Players, so that (1) when a player disconnects it returns the Player for the IP Address if the list is of length 1, and (2) figure out which players are still on the server and eliminate them to determine which player disconnected when there are multiple Steam IDs to one IP address?