-
I have it so that when a game ends in a different instance, it sends them back to the lobby instance. In the lobby instance, I have this event: instance.eventNode().addListener(AddEntityToInstanceEvent::class.java) {
} The gamemode is correctly set to adventure, the inventory is cleared, but they are not teleported to spawn. Why is this? There is no error message or anything. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I would advise against teleporting someone as they are joining the instance, and you should use: Player#setInstance(instance, Point) instead. That will work a lot better. |
Beta Was this translation helpful? Give feedback.
I would advise against teleporting someone as they are joining the instance, and you should use: Player#setInstance(instance, Point) instead.
That will work a lot better.