Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for players #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update for players #1

wants to merge 1 commit into from

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