Closed ghost closed 3 years ago
Teleporting to another dimension does a permissions recalculation, which is a rather heavy task.
I feel like this is normal.
was fixed in a 1.15 snapshot https://bugs.mojang.com/browse/MC-117914
That fix only concerns nether portals
The issue isn't related to what Mojang fixed. That's a different bug not present in 1.13.
This issue, however, was introduced in 1.13 when command suggestions became a thing. The server checks your permissions and send your client the commands it has permissions to. This happens when your player enters a dimension, which includes logging in and changing dimensions.
I have a patch in my fork to disable this permissions recalculation. https://github.com/pl3xgaming/Purpur/blob/master/patches/server/0051-Don-t-recalculate-permissions-for-players-on-world-c.patch
If a core team member is interested, I could port it to paper in a PR.
The only side effect of disabling this recalculation is your command suggestions won't update until you relog if they were changed.
Well thanks for the information. I will keep this in mind if it causes severe lag with many players. Do you know of any way to disable permission recalculation via the paper/spigot/bukkit api? To clarify, this has nothing to do with nether portals because I am teleporting the player via the spigot api.
@BillyGalbreath I like that patch, but I would prefer to have the default set to "true", because disabling it has some maybe unwanted side effects.
Author is gone but appears to have been fixed in #3116. Thank you, mystery user.
Teleporting a player to a different world causes extra latancy within the server. This is not an issue of loading chunks because there is no latency teleporting a player to an unloaded area.
I have had reported lag varying between 20-120 milliseconds and has no other trigger to cause it to go higher or lower.
I am running paper-648 (1.13.2)