Advertisement
Guest User

Untitled

a guest
Oct 14th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
  2. public void run() {
  3. for (Player p: getServer().getOnlinePlayers())
  4. if (p.isBlocking()) {
  5. Item item = p.getWorld().dropItem(p.getEyeLocation(), new ItemStack(Material.FIRE));
  6.  
  7. item.setVelocity(p.getLocation().getDirection().normalize().multiply(2));
  8. p.getWorld().playSound(p.getLocation(),Sound.GHAST_FIREBALL,1, 1);
  9.  
  10.  
  11.  
  12. }}
  13.  
  14. }, 0, 1 * 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement