How would I do this. Get a Player's faction and see if this faction is enemy/ally to a player infront of them. So this is what it looks like: https://gyazo.com/d4f464605af6034005d5eded6872e0bc Would this use an Event?
Just to ask for, that is a scoreboard that displays a prefix, where do you need a factionsapi for that?
When a player joins, meaning playerJoinEvent(), get their faction (using the Faction plugin as a library), and set it as a scoreboard object. Then set that scoreboard object to display over the player's head.
Or he may have to use packets. Because for every person it's different. Like, to Jimmy, it's his teammate, to Alex, he's an enemy and to John, he's a truce.
So on playerJoinEvent, just loop through all online players and set that user's String equal to whatever the other player's relation is + faction tag/name... then do it again for every other player. Probably not very efficient, but it's all I can think of rn.