Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void on(PlayerMoveEvent e)
- {
- Player p = e.getPlayer();
- if ((p.getLocation().getBlock().getType() == Material.STONE_PLATE) &
- (p.getLocation().subtract(0.0D, 1.0D, 0.0D) != null))
- {
- Vector v = p.getLocation().getDirection().multiply(8.0D).setY(2.0D);
- p.setVelocity(v);
- p.playSound(p.getLocation(), Sound.ENDERMAN_TELEPORT, 3, 0);
- p.playSound(p.getLocation(), Sound.ENDERDRAGON_WINGS, 3.0F, 2.0F);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement