Exemple #1
0
 public String getStringTeam(Player p) {
   if (OrangeTeam.hasPlayer(p)) {
     return ChatColor.GOLD + "Kloyne";
   } else if (BlueTeam.hasPlayer(p)) {
     return ChatColor.DARK_AQUA + "Innisfil";
   }
   return ChatColor.WHITE + "Not in game.";
 }
Exemple #2
0
 public Team getTeam(Player p) {
   if (OrangeTeam.hasPlayer(p)) {
     return Team.ORANGE;
   } else if (BlueTeam.hasPlayer(p)) {
     return Team.BLUE;
   } else {
     return Team.NEUTRAL;
   }
 }