[SPIGOT-854] Disconnect is called twice on idle kick Created: 02/May/15 Updated: 20/Jan/21 Resolved: 20/Jan/21 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | RingOfStorms | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Environment: |
Java 8 |
||
| Description |
|
If you enable the player-idle-timeout setting in the server.properties by setting it greater to 0 (in minutes) it will kick the player, but it will also send a warning in console saying that the disconnection method was called twice. Log: server.properties: |
| Comments |
| Comment by md_5 [ 20/Jan/21 ] |
|
Not an issue on 1.16.5 |
| Comment by Joel Paulien [ 21/Sep/16 ] |
|
This is still not fixed. I have some simple proof-of-concept code to re-create it: @EventHandler (priority = EventPriority.LOW)
public void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
player.kickPlayer("Sucks for you!");
}
Here's a picture of the server log: http://i.imgur.com/aB02SeQ.png |
| Comment by Hex [ 16/Nov/15 ] |
|
Re-opened as it seems that it was never actually fixed. |
| Comment by BillyGalbreath [ 15/Nov/15 ] |
|
This is not fixed. More bug reports are being made that duplicate this. https://hub.spigotmc.org/jira/browse/SPIGOT-1133 I still receive this warning message when using the player.kickPlayer() api method on version git-Spigot-5f38d38-18fbb24 (MC: 1.8.8). Here is a forum thread about it show how often this is happening to people: https://www.spigotmc.org/threads/handledisconnect-called-twice.74171/ |
| Comment by Kit Manners [ 29/Jul/15 ] |
|
This is still happening for me when I use player.kickPlayer(string) - the PlayerKickEvent is only fired once though. >ver |
| Comment by Nicolas Glassey [ 04/May/15 ] |
|
Same issue, that has been there at least since the first 1.8 spigot. Happens for every player kick (timeout, plugin called, spam-related, ...). [13:19:20 INFO]: UUID of player Weby is f057c938-0813-454f-aa52-db0e7d7d17bb |