Added logic to set the player flag for joining a faction. Tested on Ubuntu and had zero issues.
Have fun!