daily pastebin goal
91%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. @Override
  2.     public void checkGame() {
  3.         for (TBTeam team:Main.getPlugin().getTeamManager().getTBTeams()){
  4.                 if (team.getPlayers().size()<=0){
  5.                     if (!eliminatedTeams.contains(team))
  6.                          eliminatedTeams.add(team);
  7.                 }
  8.                 if (team.getPoints()<=0){
  9.                     elimination(team);
  10.                     Bukkit.broadcastMessage(eliminatedTeams.size()+" size");
  11.                 }
  12.                 if (eliminatedTeams.size()==Main.getPlugin().getCurrentMode().teamsInGame()-1){
  13.                     if (!eliminatedTeams.contains(team)) {
  14.                         win(team);
  15.                         return;
  16.                     }
  17.                     else {
  18.                         Bukkit.broadcastMessage("Má vyhrát team, který je mimo hru");
  19.                     }
  20.                 }
  21.             }
  22.  
  23.     }
  24.  
  25. @Override
  26.     public void elimination(TBTeam team) {
  27.         team.setPoints(0);
  28.         team.getEntity().despawn();
  29.         if (!eliminatedTeams.contains(team)) {
  30.             eliminatedTeams.add(team);
  31.         }
  32. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top