C++ pPlayer Faction?

What would be the code to make it so that the player only teleports to that location depending on the faction of which they represent?

Compare player->GetTeam() with ALLIANCE or HORDE

https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Player/Player.h#L1930

— Canned message start —
This thread is not related to the official Trinity codebase and was moved to the Custom Code section.
Please read the stickies next time.
— Canned message end —