Replace getName with hasPlayedBefore as offlineplayer will never be null...
Fix getting the wrong faction from player