ITADN

TPS drops during world teleportation due to command packet resend

#365Closedpurpurcof 创建于 2026-02-15
P
purpurcofcommented
**Describe the bug** TPS drops significantly when players teleport between worlds due to Brigadier command packet resend. **To Reproduce** 1. Install Worlds plugin on a server with slow CPU/disk 2. Teleport between worlds using `/worlds teleport` 3. Observe TPS drop during teleportation **Expected behavior** TPS should remain stable during world teleportation, similar to Multiverse-Core or My_Worlds plugins. **Same** https://github.com/TheNextLvl-net/worlds/issues/240 **Spark Profile** https://spark.lucko.me/iOpCoIjcdD The issue is caused by `ClientboundCommandsPacket` being sent to all players on world change. This happens because Worlds uses Brigadier commands with complex nested structure (19 subcommands under `/world`), and Paper compares the entire command tree on every world change, causing significant lag. **Possible solutions:** 1. Simplify command structure (split into separate commands instead of subcommands) 2. Switch to legacy Bukkit commands instead of Brigadier 3. Implement command caching to avoid resending unchanged commands **Worlds Version:** 3.12.2 **Server Version:** Leaf 1.21.11
关闭于 2026-02-15 2 条评论