Guest User

Untitled

a guest
Mar 6th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1.         int i=1;
  2.        
  3.         Location bloqueCristal;    
  4.         if (tipoParcela == TownBlockType.ARENA)
  5.         {
  6.             if (victim.getLocation().add(0, 0.5, 0).getBlock().getTypeId() == 11 || victim.getLocation().add(0, 0.5, 0).getBlock().getTypeId() == 10 || victim.getLocation().add(0, -0.5, 0).getBlock().getTypeId() == 10 || victim.getLocation().add(0, -0.5, 0).getBlock().getTypeId() == 11) {
  7.                    
  8.                 while ((victim.getLocation().add(0,i-0.5,0).getBlock().getTypeId() ==10 || victim.getLocation().add(0,i-0.5,0).getBlock().getTypeId() == 11) && i<120)
  9.                     i++;
  10.                    
  11.                 bloqueCristal = victim.getLocation();
  12.                 bloqueCristal.add(0, 4+i, 0);
  13.                 bloqueCristal.getBlock().setTypeId(20);
  14.            
  15.                 plugin.jugadoresMuertosArenas.put(victim.getName(),victim.getLocation().add(0,5+i,0));
  16.             }
  17.             else
  18.                     plugin.jugadoresMuertosArenas.put(victim.getName(),victim.getLocation());
  19.         }
Add Comment
Please, Sign In to add comment