Skip to content

Conversation

@Andross96
Copy link

No description provided.

@456dev
Copy link
Contributor

456dev commented Jun 4, 2021

Was this tested? Player portal event doesn't trigger on players coming from the end.

@Andross96
Copy link
Author

Andross96 commented Jun 4, 2021 via email

@456dev
Copy link
Contributor

456dev commented Jun 4, 2021

Players are despawned after touching a portal, told to watch the credits, and held in kind of a limbo
When the player stops watching the clients (instantly if the user has already seen them) then the server respawns the player at the overworld world spawn

@456dev
Copy link
Contributor

456dev commented Jun 4, 2021

that event is more for netherportals i think

@Andross96
Copy link
Author

Then the problem is more tricky, you have to found a workaround for this. It can be hacky :/
You can try:
Debug the PlayerPortalEvent: is it even triggered when player enters an end portal? If so, try to teleport the player instead of cancelling the event?
Else, ugly, but I do not see any other option, using PlayerMoveEvent, like this: https://www.spigotmc.org/threads/how-to-disable-end-credits.48349/#post-543976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants