I've been told the code is a little weird. But I applied the above fixes to it.
it's supposed to set a task to kick any "Unassigned" players.. but after fixing I can finally compile it.. just the plugin doesnt work as intended.
It's supposed to remove the task once it recognizes that the player joined a team already.. but instead it continues to show the countdown and still kicks regardless if the player is unassigned or assigned.
Could some1 maybe cut this down to something cleaner? 30 second timer for unassigned players, and if they assigned remove_task? Getting tired of people sitting in my pug server on map changes without getting kicked, this should limit the afk's a bit and kick them out.