示例#1
0
 public static String getPlayerTeam(Player player) {
   String status = "spectator";
   if (MCMEPVP.PlayerStatus.containsKey(player.getName())) {
     status = MCMEPVP.PlayerStatus.get(player.getName());
   }
   return status;
 }
示例#2
0
 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;
 }