Reputation:
I'm working on a plugin. I want to spawn a player when a player come a y coordinates(Fall Down). I tried scheluder (some resources says) but i didn't do it how can do it?
Thanks For Answers
Upvotes: 0
Views: 52
Reputation: 11
You can use an event handler for the PlayerMoveEvent, and then check if the Y coordinate is less than your threshold, and if it is, teleport them to spawn with the Entity#teleport(Location) method.
Upvotes: 1