[SPIGOT-1599] Not possible to teleport players in PlayerQuitEvent Created: 01/Mar/16 Updated: 30/Jun/16 Resolved: 30/Jun/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Brokkonaut | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 6 |
Labels: | None |
Issue Links: |
|
Description |
When a players leaves the server, it is no longer possible to teleport him in the PlayerQuitEvent using player.teleport(Location). the teleport method returns false and does not change the players location. In 1.8 this worked and it is important for many minigame plugins. |
Comments |
Comment by t. hartmann [ 05/Jun/16 ] |
Same problem here, On PlayerQuitEvent no teleport works. git-Spigot-798f32d-0cd0397 (MC: 1.9.4) (Implementing API version 1.9.4-R0.1-SNAPSHOT) |
Comment by blablubbabc [ 24/May/16 ] |
For anyone reviewing this: I assume that the issue is related to a small change in PlayerConnection.isDisconnected(): And networkManager.isConnected() returns false already when bukkit handles the player quit after the player 'disconnected'. networkManager.channel.config().isAutoRead() still returned true in this case. Possible solutions might be:
|
Comment by Mine Home [ 12/Apr/16 ] |
Bugfix would be very important for me! |