24 Zeilen
573 B
Java
24 Zeilen
573 B
Java
package de.steamwar.fightsystem.fight;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
public class IFight {
|
|
private IFight(){}
|
|
|
|
private static IFightTeam redTeam;
|
|
private static IFightTeam blueTeam;
|
|
|
|
static void init(IFightTeam redTeam, IFightTeam blueTeam){
|
|
IFight.redTeam = redTeam;
|
|
IFight.blueTeam = blueTeam;
|
|
}
|
|
|
|
public static IFightTeam getPlayerTeam(Player player) {
|
|
if(redTeam.isPlayerInTeam(player))
|
|
return redTeam;
|
|
if(blueTeam.isPlayerInTeam(player))
|
|
return blueTeam;
|
|
return null;
|
|
}
|
|
}
|