Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i=1;
- Location bloqueCristal;
- if (tipoParcela == TownBlockType.ARENA)
- {
- 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) {
- 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)
- i++;
- bloqueCristal = victim.getLocation();
- bloqueCristal.add(0, 4+i, 0);
- bloqueCristal.getBlock().setTypeId(20);
- plugin.jugadoresMuertosArenas.put(victim.getName(),victim.getLocation().add(0,5+i,0));
- }
- else
- plugin.jugadoresMuertosArenas.put(victim.getName(),victim.getLocation());
- }
Add Comment
Please, Sign In to add comment