Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onClip(final PlayerTeleportEvent e) {
- final Location to = e.getTo().clone();
- if (e.getCause() != null && e.getCause() == PlayerTeleportEvent.TeleportCause.ENDER_PEARL) {
- to.setX(to.getBlockX() + 0.5);
- to.setZ(to.getBlockZ() + 0.5);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement