package me.yaruma.fightsystem.fight;
import me.yaruma.fightsystem.utils.Config;
import org.bukkit.entity.Player;
public class Fight {
public static final FightTeam redTeam = new FightTeam(Config.TeamRedName, Config.TeamRedPrefix, Config.TeamRedSpawn, Config.TeamRedPaste, Config.TeamRedRotate);
public static final FightTeam blueTeam = new FightTeam(Config.TeamBlueName, Config.TeamBluePrefix, Config.TeamBlueSpawn, Config.TeamBluePaste, Config.TeamBlueRotate);
public static FightTeam getPlayerTeam(Player player) {
if(redTeam.isPlayerInTeam(player))
return redTeam;
if(blueTeam.isPlayerInTeam(player))
return blueTeam;
return null;
}
public static FightTeam getOpposite(FightTeam fightTeam) {
if(fightTeam == redTeam)
if(fightTeam == blueTeam)
public static FightTeam getInvitedTeam(Player player){
if(redTeam.getInvited().contains(player))
else if(blueTeam.getInvited().contains(player))
public static FightPlayer getFightPlayer(Player player) {
return redTeam.getFightPlayer(player);
return blueTeam.getFightPlayer(player);
public static FightTeam getRedTeam() {
public static FightTeam getBlueTeam() {