Advertisement
iNotLazo

Untitled

Sep 1st, 2020
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @EventHandler
  2. public void onClip(final PlayerTeleportEvent e) {
  3. final Location to = e.getTo().clone();
  4. if (e.getCause() != null && e.getCause() == PlayerTeleportEvent.TeleportCause.ENDER_PEARL) {
  5. to.setX(to.getBlockX() + 0.5);
  6. to.setZ(to.getBlockZ() + 0.5);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement