Advertisement
MCMarter

Untitled

Aug 12th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. @EventHandler
  2. public void on(PlayerMoveEvent e)
  3. {
  4. Player p = e.getPlayer();
  5. if ((p.getLocation().getBlock().getType() == Material.STONE_PLATE) &
  6. (p.getLocation().subtract(0.0D, 1.0D, 0.0D) != null))
  7. {
  8. Vector v = p.getLocation().getDirection().multiply(8.0D).setY(2.0D);
  9. p.setVelocity(v);
  10. p.playSound(p.getLocation(), Sound.ENDERMAN_TELEPORT, 3, 0);
  11. p.playSound(p.getLocation(), Sound.ENDERDRAGON_WINGS, 3.0F, 2.0F);
  12. }
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement