Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Try PlayerMoveEvent and use event.setTo() to teleport to the new world.
  2. My guess why the error occurrs is that teleport() directly removes the player from the current world's entity list (or HashMap) and adds him to the teleported world. The code that calls PlayerVelocityEvent however is included in a loop through all entities of a world, thus a CuncurrentModificationException is thrown.
  3.  
  4. Spot on! Using a PlayerMoveEvent instead of a PlayerVelocityEvent works. Thank you!
  5.  
  6. https://bukkit.org/threads/solved-teleportation-to-an-unloaded-and-potentially-ungenerated-chunk-of-another-world.80415/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement