Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1031 */ public HashMap<String, Integer> arrows = new HashMap<String, Integer>();
- /* */
- /* */ @EventHandler
- /* */ public void onPlayerInteract(PlayerInteractEvent ee) {
- /* 1035 */ final Player p = ee.getPlayer();
- /* 1036 */ if (p.getWorld().getName().endsWith("_cw")) {
- /* 1037 */ Action a = ee.getAction();
- /* 1038 */ if (this.team.hasPlayer(p)) {
- /* 1039 */ if ((a == Action.LEFT_CLICK_AIR) || (a == Action.LEFT_CLICK_BLOCK)) {
- /* 1040 */ if (p.getItemInHand().getType() == Material.BOW) {
- /* 1041 */ grasp(p);
- /* 1042 */ } else if ((p.getItemInHand().getType() != Material.BOW) && (p.getItemInHand().getType() != Material.STICK)) {
- /* 1043 */ Bukkit.getScheduler().cancelTask(this.Task);
- /* 1044 */ for (Entity en : p.getNearbyEntities(6.0D, 6.0D, 6.0D)) {
- /* 1045 */ ((LivingEntity)en).setMaximumNoDamageTicks(20);
- /* */ }
- /* */ }
- /* */ }
- /* */
- /* 1050 */ if ((a == Action.RIGHT_CLICK_AIR) || (a == Action.RIGHT_CLICK_BLOCK)) {
- /* 1051 */ if (p.getItemInHand().getType() == Material.BOW) {
- /* 1052 */ if (!p.getInventory().contains(arrow())) {
- /* 1053 */ this.arrows.put(p.getName(), Integer.valueOf(0));
- /* */ } else {
- /* 1055 */ this.arrows.put(p.getName(), Integer.valueOf(1));
- /* */ }
- /* 1057 */ if (((Integer)this.arrows.get(p.getName())).intValue() == 0) {
- /* 1058 */ p.getInventory().addItem(new ItemStack[] { arrow() });
- /* 1059 */ this.arrows.put(p.getName(), Integer.valueOf(1));
- /* */ }
- /* */ }
- /* 1062 */ if (p.getItemInHand().getType() == Material.TRIPWIRE_HOOK) {
- /* 1063 */ throwhook(p, null, null);
- /* 1064 */ p.sendMessage(starter() + ChatColor.GOLD + "You threw chicken hook. You can use it again in 2 seconds.");
- /* 1065 */ p.getInventory().remove(fleshhook());
- /* 1066 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
- /* */ public void run() {
- /* 1068 */ p.getInventory().addItem(new ItemStack[] { ChickenWars.fleshhook() });
- /* 1069 */ p.playSound(p.getLocation(), Sound.BLOCK_NOTE_PLING, 1.0F, 1.0F);
- /* 1070 */ p.sendMessage(ChickenWars.starter() + ChatColor.GOLD + "You can now throw a chicken hook.");
- /* */ }
- /* 1072 */ }, 40L);
- /* */ }
- /* 1074 */ if (p.getItemInHand().getType() == Material.WOOD_PICKAXE) {
- /* 1075 */ p.getInventory().remove(woodpick());
- /* 1076 */ final int ID1 = Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- /* */ public void run() {
- /* 1078 */ if ((!ChickenWars.this.proj.isDead()) && (
- /* 1079 */ (ChickenWars.this.proj.getLocation().subtract(0.0D, 1.0D, 0.0D).getBlock().getType() == Material.AIR) ||
- (ChickenWars.this.proj.getLocation().add(0.0D, 1.0D, 0.0D).getBlock().getType() == Material.AIR) ||
- (ChickenWars.this.proj.getLocation().subtract(1.0D, 0.0D, 0.0D).getBlock().getType() == Material.AIR) ||
- (ChickenWars.this.proj.getLocation().add(1.0D, 0.0D, 0.0D).getBlock().getType() == Material.AIR) ||
- (ChickenWars.this.proj.getLocation().subtract(0.0D, 0.0D, 1.0D).getBlock().getType() == Material.AIR) ||
- (ChickenWars.this.proj.getLocation().add(0.0D, 0.0D, 1.0D).getBlock().getType() == Material.AIR)))
- {
- /* 1080 */ ChickenWars.this.proj.setVelocity(new Vector(0, 0, 0));
- /* 1081 */ ChickenWars.this.eggs(ChickenWars.this.proj);
- /* 1082 */ int j;
- for (Iterator localIterator = ChickenWars.this.proj.getNearbyEntities(150.0D, 150.0D, 150.0D).iterator();
- localIterator.hasNext();
- j <= 60); //syntax error, insert { to complete class body
- /* */ {
- /* 1082 */ Entity en = (Entity)localIterator.next();
- /* 1083 */ if ((!(en instanceof Player)) || (en == p))
- /* */ break;
- /* 1085 */ Vector pull = ChickenWars.this.proj.getLocation().subtract(en.getLocation()).toVector().multiply(0.03D);
- /* 1086 */ en.setVelocity(pull);
- /* 1087 */ ((Player)en).playSound(en.getLocation(), Sound.ENTITY_IRONGOLEM_DEATH, 0.1F, 0.2F);
- /* 1088 */ j = 0; continue;
- /* 1089 */ Vector loca = ChickenWars.this.proj.getLocation().add(en.getLocation().add(0.0D, 1.5D, 0.0D)).toVector().divide(new Vector(j / 3, j / 3, j / 3));
- /* 1090 */ ((Player)en).getWorld().playEffect(loca.toLocation(en.getWorld()), Effect.SMOKE, 1);j++;
- /* */ }
- /* */
- /* */
- /* */
- /* */
- /* 1094 */ if (ChickenWars.this.th == 1) {
- /* 1095 */ for (Entity en : ChickenWars.this.proj.getNearbyEntities(150.0D, 150.0D, 150.0D)) {
- /* 1096 */ if ((en instanceof Player)) {
- /* 1097 */ ChickenWars.this.proj.getWorld().playSound(ChickenWars.this.proj.getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 3.0F, 1.0F);
- /* */ }
- /* */ }
- /* */ }
- /* 1101 */ ChickenWars.this.th += 1;
- /* */ }
- /* */ }
- /* 1105 */ }, 0L, 1L); //syntax error, delete these tokens
- /* 1106 */ final int ID2 = Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- /* */ public void run() {
- /* 1108 */ if (!ChickenWars.this.proj.isDead()) {
- /* 1109 */ if ((ChickenWars.this.proj.getLocation().subtract(0.0D, 1.0D, 0.0D).getBlock().getType() == Material.AIR) || (ChickenWars.this.proj.getLocation().add(0.0D, 1.0D, 0.0D).getBlock().getType() == Material.AIR) || (ChickenWars.this.proj.getLocation().subtract(1.0D, 0.0D, 0.0D).getBlock().getType() == Material.AIR) || (ChickenWars.this.proj.getLocation().add(1.0D, 0.0D, 0.0D).getBlock().getType() == Material.AIR) || (ChickenWars.this.proj.getLocation().subtract(0.0D, 0.0D, 1.0D).getBlock().getType() == Material.AIR) || (ChickenWars.this.proj.getLocation().add(0.0D, 0.0D, 1.0D).getBlock().getType() == Material.AIR)) {
- /* 1110 */ ChickenWars.this.proj.getWorld().playEffect(ChickenWars.this.proj.getLocation(), Effect.STEP_SOUND, Material.SAND);
- /* */ }
- /* */
- /* */
- /* */ }
- /* */ else {}
- /* */ }
- /* */
- /* 1118 */ }, 0L, 3L);
- /* 1119 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
- /* */ public void run() {
- /* 1121 */ ChickenWars.this.proj.remove();
- /* 1122 */ Bukkit.getScheduler().cancelTask(ID1);
- /* 1123 */ Bukkit.getScheduler().cancelTask(ID2);
- /* */ }
- /* 1125 */ }, 280L);
- /* 1126 */ Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- /* */ public void run() {
- /* 1128 */ if ((ChickenWars.this.proj.isDead()) || (ChickenWars.this.proj.getLocation().subtract(0.0D, 1.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().add(0.0D, 1.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().subtract(1.0D, 0.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().add(1.0D, 0.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().subtract(0.0D, 0.0D, 1.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().add(0.0D, 0.0D, 1.0D).getBlock().getType() != Material.AIR)) {
- /* 1129 */ Bukkit.getScheduler().cancelTask(ID1);
- /* 1130 */ Bukkit.getScheduler().cancelTask(ID2);
- /* */ }
- /* */ }
- /* 1133 */ }, 0L, 1L);
- /* */ }
- /* 1135 */ if (p.getItemInHand().getType() == Material.IRON_PICKAXE) {
- /* 1136 */ this.bomb.put(p.getName(), Integer.valueOf(1));
- /* 1137 */ Bukkit.getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
- /* */ public void run() {
- /* 1139 */ ChickenWars.this.bomb.put(p.getName(), Integer.valueOf(0));
- /* */ }
- /* 1141 */ }, 6000L);
- /* 1142 */ this.th = 0;
- /* 1143 */ p.addPotionEffect(PotionEffectType.SATURATION.createEffect(20, 255));
- /* 1144 */ p.addPotionEffect(PotionEffectType.REGENERATION.createEffect(20, 255));
- /* 1145 */ p.getInventory().remove(ironpick());
- /* 1146 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
- /* */ public void run() {
- /* 1148 */ p.getInventory().addItem(new ItemStack[] { ChickenWars.woodpick() });
- /* */ }
- /* 1150 */ }, 1L);
- /* 1151 */ this.proj = p.launchProjectile(Egg.class);
- /* 1152 */ this.proj.teleport(new Location(this.proj.getWorld(), this.proj.getLocation().getX(), this.proj.getLocation().add(0.0D, 1.0D, 0.0D).getY(), this.proj.getLocation().getZ()));
- /* 1153 */ this.proj.setVelocity(this.proj.getVelocity().multiply(0.9D));
- /* 1154 */ final int ID3 = Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- /* */ public void run() {
- /* 1156 */ if ((!ChickenWars.this.proj.isDead()) && (
- /* 1157 */ (ChickenWars.this.proj.getLocation().subtract(0.0D, 1.0D, 0.0D).getBlock().getType() != Material.AIR) ||
- (ChickenWars.this.proj.getLocation().add(0.0D, 1.0D, 0.0D).getBlock().getType() != Material.AIR) ||
- (ChickenWars.this.proj.getLocation().subtract(1.0D, 0.0D, 0.0D).getBlock().getType() != Material.AIR) ||
- (ChickenWars.this.proj.getLocation().add(1.0D, 0.0D, 0.0D).getBlock().getType() != Material.AIR) ||
- (ChickenWars.this.proj.getLocation().subtract(0.0D, 0.0D, 1.0D).getBlock().getType() != Material.AIR) ||
- (ChickenWars.this.proj.getLocation().add(0.0D, 0.0D, 1.0D).getBlock().getType() != Material.AIR)))
- {
- /* 1158 */ ChickenWars.this.proj.setVelocity(new Vector(0, 0, 0));
- /* 1159 */ ChickenWars.this.eggs(ChickenWars.this.proj);
- /* 1160 */ int j;
- for (Iterator localIterator = ChickenWars.this.proj.getNearbyEntities(150.0D, 150.0D, 150.0D).iterator();
- localIterator.hasNext();
- j <= 60); //syntax error, insert } to complete class body
- /* */ {
- /* 1160 */ Entity en = (Entity)localIterator.next();
- /* 1161 */ if ((!(en instanceof Player)) || (en == p)) break;
- /* 1162 */ Vector pull = ChickenWars.this.proj.getLocation().subtract(en.getLocation()).toVector().multiply(0.03D);
- /* 1163 */ en.setVelocity(pull);
- /* 1164 */ ((Player)en).playSound(en.getLocation(), Sound.ENTITY_IRONGOLEM_DEATH, 0.1F, 0.2F);
- /* 1165 */ j = 0; continue;
- /* 1166 */ Vector loca = ChickenWars.this.proj.getLocation().add(en.getLocation().add(0.0D, 1.5D, 0.0D)).toVector().divide(new Vector(j / 3, j / 3, j / 3));
- /* 1167 */ ((Player)en).getWorld().playEffect(loca.toLocation(en.getWorld()), Effect.SMOKE, 1);
- j++;
- /* */ }
- /* */
- /* */
- /* */
- /* */
- /* 1171 */ if (ChickenWars.this.th == 1) {
- /* 1172 */ for (Entity en : ChickenWars.this.proj.getNearbyEntities(150.0D, 150.0D, 150.0D)) {
- /* 1173 */ if ((en instanceof Player)) {
- /* 1174 */ ChickenWars.this.proj.getWorld().playSound(ChickenWars.this.proj.getLocation(), Sound.ENTITY_GENERIC_EXPLODE, 3.0F, 1.0F);
- /* */ }
- /* */ }
- /* */ }
- /* 1178 */ ChickenWars.this.th += 1;
- /* */ } else {}
- /* */ }
- /* 1182 */ }, 0L, 1L); //syntax error, delete these tokens
- /* 1183 */ final int ID4 = Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- /* */ public void run() {
- /* 1185 */ if ((!ChickenWars.this.proj.isDead()) && (
- /* 1186 */ (ChickenWars.this.proj.getLocation().subtract(0.0D, 1.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().add(0.0D, 1.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().subtract(1.0D, 0.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().add(1.0D, 0.0D, 0.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().subtract(0.0D, 0.0D, 1.0D).getBlock().getType() != Material.AIR) || (ChickenWars.this.proj.getLocation().add(0.0D, 0.0D, 1.0D).getBlock().getType() != Material.AIR))) {
- /* 1187 */ ChickenWars.this.proj.getWorld().playEffect(ChickenWars.this.proj.getLocation(), Effect.STEP_SOUND, Material.SAND);
- /* */ }
- /* */
- /* */ }
- /* 1191 */ }, 0L, 3L);
- /* 1192 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
- /* */ public void run() {
- /* 1194 */ ChickenWars.this.proj.remove();
- /* 1195 */ Bukkit.getScheduler().cancelTask(ID3);
- /* 1196 */ Bukkit.getScheduler().cancelTask(ID4);
- /* 1197 */ p.getInventory().remove(ChickenWars.woodpick());
- /* */ }
- /* 1199 */ }, 280L);
- /* 1200 */ Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- /* */ public void run() {
- /* 1202 */ if (ChickenWars.this.proj.isDead()) {
- /* 1203 */ Bukkit.getScheduler().cancelTask(ID3);
- /* 1204 */ Bukkit.getScheduler().cancelTask(ID4);
- /* */ }
- /* */ }
- /* 1207 */ }, 0L, 1L);
- /* */ } //syntax error, delete this token
- /* 1209 */ if (p.getItemInHand().getType() == Material.IRON_AXE) {
- /* 1210 */ spawnMOB(p);
- /* 1211 */ p.getInventory().removeItem(new ItemStack[] { ironaxe() });
- /* 1212 */ p.getInventory().addItem(new ItemStack[] { woodaxe() });
- /* 1213 */ p.sendMessage(starter() + ChatColor.GOLD + "You used guided chicken missle. You can use this again in 6 seconds or when you hit a player.");
- /* 1214 */ this.y.put(p.getName(), Integer.valueOf(0));
- /* */
- /* 1216 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
- /* */ public void run() {
- /* 1218 */ if ((((Integer)ChickenWars.this.y.get(p.getName())).intValue() == 0) &&
- /* 1219 */ (p.getWorld().getName().endsWith("_cw")) && (!p.getInventory().contains(Material.IRON_AXE))) {
- /* 1220 */ p.getInventory().removeItem(new ItemStack[] { ChickenWars.woodaxe() });
- /* 1221 */ p.getInventory().addItem(new ItemStack[] { ChickenWars.ironaxe() });
- /* 1222 */ p.sendMessage(ChickenWars.starter() + ChatColor.GOLD + "You can now use guided chicken missle.");
- /* 1223 */ p.playSound(p.getLocation(), Sound.BLOCK_NOTE_PLING, 1.0F, 1.0F);
- /* */ }
- /* */
- /* */ }
- /* 1227 */ }, 120L);
- /* */ }
- /* */
- /* 1230 */ if (p.getItemInHand().getType() == Material.IRON_SWORD) {
- /* 1231 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* 1232 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* 1233 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1236 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1238 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* 1239 */ p.getInventory().removeItem(new ItemStack[] { ChickenWars.ironsword() });
- /* 1240 */ p.getInventory().addItem(new ItemStack[] { ChickenWars.woodsword() });
- /* 1241 */ p.sendMessage(ChickenWars.starter() + ChatColor.GOLD + "You used egg blaster. You can use this again in a 4 seconds.");
- /* */ }
- /* 1243 */ }, 1L);
- /* 1244 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1247 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1249 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1251 */ }, 2L);
- /* 1252 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1255 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1257 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1259 */ }, 3L);
- /* 1260 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1263 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1265 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1267 */ }, 4L);
- /* 1268 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1271 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1273 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1275 */ }, 5L);
- /* 1276 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1279 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1281 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1283 */ }, 6L);
- /* 1284 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1287 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1289 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1291 */ }, 7L);
- /* 1292 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1295 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1297 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1299 */ }, 8L);
- /* 1300 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1303 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1305 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1307 */ }, 9L);
- /* 1308 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1311 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1313 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1315 */ }, 10L);
- /* 1316 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1319 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1321 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1323 */ }, 11L);
- /* 1324 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1327 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1329 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1331 */ }, 12L);
- /* 1332 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1335 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1337 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1339 */ }, 13L);
- /* 1340 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1343 */ p.launchProjectile(Egg.class, p.getLocation().getDirection());
- /* */
- /* 1345 */ p.getWorld().playSound(p.getLocation(), Sound.ENTITY_CHICKEN_EGG, 1.0F, 1.0F);
- /* */ }
- /* 1347 */ }, 14L);
- /* 1348 */ Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable()
- /* */ {
- /* */ public void run() {
- /* 1351 */ if (p.getWorld().getName().endsWith("_cw")) {
- /* 1352 */ p.getInventory().removeItem(new ItemStack[] { ChickenWars.woodsword() });
- /* 1353 */ p.getInventory().addItem(new ItemStack[] { ChickenWars.ironsword() });
- /* 1354 */ p.sendMessage(ChickenWars.starter() + ChatColor.GOLD + "You can now use egg blaster.");
- /* 1355 */ p.playSound(p.getLocation(), Sound.BLOCK_NOTE_PLING, 1.0F, 1.0F);
- /* */ }
- /* */ }
- /* 1358 */ }, 74L); //insert } to complete statement
- /* */ }
- /* */ }
- /* */ }
- /* */ }
- /* */ }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement