public static String getPlayerTeam(Player player) { String status = "spectator"; if (MCMEPVP.PlayerStatus.containsKey(player.getName())) { status = MCMEPVP.PlayerStatus.get(player.getName()); } return status; }
public static boolean isOnTeam(Player player) { boolean check = true; if (MCMEPVP.PlayerStatus.containsKey(player.getName())) { String status = teamUtil.getPlayerTeam(player); if (status.equals("spectator")) { check = false; } if (status.equals("participant")) { check = false; } } else { check = false; } return check; }