Whenever I teleport players from one world to another together (for loop, teleport them each individually), sometimes random players will be completely invisble to other random players unless one of the players (the person being invisible, or the person not seeing the invisible person) dies and respawns back. There's not much to post, considering the code is fairly simple and there are no errors. Has anyone come across something like this before?
Yes it is (or was) a Bukkit bug. I may be wrong, but I believe the answer was to teleport each player with a 1 tick delay.
Yep, so use a repeating task with a 1 tick delay and loop through all the players. Or loop through all the players and use a delayed task. Either should work.
Twiggy, did this work for you? I'm affected by it too. I was able to reproduce the bug with two players, and doing what h8crew said fixed it, but it's still happening with more than two players. My code is fairly complex at this point, so it might be something in it stopping it from working. Just want to confirm the fix works before I start tearing my code apart.
I know bukkit has an issue where teleported players wont update to others till they move a certain range that forces bukkit to resend the data to the players who are where the player teleported to and cant see the teleported player
I've encountered that bug too, but we're discussing a separate bug here. The one we're talking about causes players to appear vanished to other players when teleported between worlds. They can't be seen, interacted with, or appear on the tab list. I got 3 clients, and was able to reproduce the bug again. I changed the tick interval between teleportation from 1 tick to 2 ticks and it stopped happening. Has this bug been reported on the bug tracker, or should I report it? EDIT by Moderator: merged posts, please use the edit button instead of double posting.