Player Join Handler

Expand and mod your server.
Post Reply
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 764
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Player Join Handler

Post by allejo » Mon Jan 25, 2016 3:36 am

...a very generic and descriptive plug-in name; not my best, I know.

This plug-in keeps track of player sessions and automatically moves players to the observer team if a match is active on the server and they are either unverified or they were not already previously on the server within _sessionTime seconds. In other words, when a match is ongoing, players will automatically be moved to the Observer team if they are unverified or they were not previously already on the observer team; this prevents random players from joining matches and then immediately getting kicked.

I put it to the test at today's Battle of the Genders matches and it worked flawlessly. Enjoy!

GitHub
playerJoinHandler.cpp

License: MIT
Here's my personal website and my open source projects are available on GitHub; I work on a lot of cool things.

Image

Post Reply