I don't understand. This default code works on both types of connections, returns the numbers, and I gave the pass check in a shorter fashion. I get you might like longer code, I've done that before, but for functionality. I'm offering the same functionality in a shorter package. I'd rather not make whole new functions when the exact same thing can be done in a shorter manner.
Either way, I also added an announcement for IP in there if they do get in.
It does work on both types, however, what it's lacking is the respective class functions.
The pass check is the exact same.
It's not a shorter package.
Mine prevents without the return. With the return, you sometimes get to see a line of text if you join a server while banned, which could work the same in this case.
And wow, yours uses another check just like mine. Just default, though that doesn't make a difference.
I was also planning on rewriting mine just to be a tad more efficient. Sticking the check within the If, which actually makes mine a much shorter package, and to prevent instantly.
I've already given my reason for leaving out the announcements.