[SPIGOT-6105] Changing destination world in PlayerPortalEvent does not work Created: 26/Aug/20  Updated: 26/Aug/20  Resolved: 26/Aug/20

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: William Surgeon Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.16.2, API, PlayerPortalEvent
Environment:

OS: Ubuntu Server 18.04.3 (Linux: 4.15.0-70-generic)
Java: Oracle JRE 1.8.0 update 161 build 12


Issue Links:
Duplicate
duplicates SPIGOT-6099 PlayerPortalEvent setTo() ignores wor... Resolved
Version: git-Spigot-d65430a-bad55db
Guidelines Read: Yes

 Description   

The original world is used to create a new ShapeDetectorShape instead of the desired world in EntityPlayer#a(WorldServer). In the patch for EntityPlayer, it is at this line.

Note: To test this, you need a world that is not part of the default set.
If you use the attached plugin, it will create a test world on it's own.


Using the Test Plugin:

  • /test_portal_event = Set a meta flag to sent you to the test world

Generated at Fri Mar 14 15:03:44 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.