user6599577
user6599577

Reputation:

Spawn A Player when player pass y coordnat

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

Answers (1)

Adam Edwards
Adam Edwards

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

Related Questions