Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
- public void run() {
- for (Player p: getServer().getOnlinePlayers())
- if (p.isBlocking()) {
- Item item = p.getWorld().dropItem(p.getEyeLocation(), new ItemStack(Material.FIRE));
- item.setVelocity(p.getLocation().getDirection().normalize().multiply(2));
- p.getWorld().playSound(p.getLocation(),Sound.GHAST_FIREBALL,1, 1);
- }}
- }, 0, 1 * 1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement