I’m in the process of making a web-connected player whitelist for my server. Right now I have a PHP file that checks if the given Steam ID is allowed and returns a yes or no (basically). All I need is a good way to stop the player from joining if they aren’t on the whitelist. I’ve noticed a few hooks that are helpful but don’t really do the job.
This hook will provide the name and ip of the player as soon as they connect to the server. This would work if it passed a player entity that I could kick…
This would work fine since it passes a player entity, but the hook doesn’t get called until the player finishes loading. I would really prefer to just kick them right away (like a “Bad Password.” dialog).
So those are the options that are apparent to me. Does anyone else have some suggestions?