{"action":"created","issue":{"url":"https://api.github.com/repos/SpigotMC/BungeeCord/issues/1333","labels_url":"https://api.github.com/repos/SpigotMC/BungeeCord/issues/1333/labels{/name}","comments_url":"https://api.github.com/repos/SpigotMC/BungeeCord/issues/1333/comments","events_url":"https://api.github.com/repos/SpigotMC/BungeeCord/issues/1333/events","html_url":"https://github.com/SpigotMC/BungeeCord/pull/1333","id":54895379,"number":1333,"title":"\"Quitting\" and \"ConnectFail\" subchannels","user":{"login":"IfarPL","id":8337502,"avatar_url":"https://avatars.githubusercontent.com/u/8337502?v=3","gravatar_id":"","url":"https://api.github.com/users/IfarPL","html_url":"https://github.com/IfarPL","followers_url":"https://api.github.com/users/IfarPL/followers","following_url":"https://api.github.com/users/IfarPL/following{/other_user}","gists_url":"https://api.github.com/users/IfarPL/gists{/gist_id}","starred_url":"https://api.github.com/users/IfarPL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IfarPL/subscriptions","organizations_url":"https://api.github.com/users/IfarPL/orgs","repos_url":"https://api.github.com/users/IfarPL/repos","events_url":"https://api.github.com/users/IfarPL/events{/privacy}","received_events_url":"https://api.github.com/users/IfarPL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T15:21:57Z","updated_at":"2015-01-21T18:29:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SpigotMC/BungeeCord/pulls/1333","html_url":"https://github.com/SpigotMC/BungeeCord/pull/1333","diff_url":"https://github.com/SpigotMC/BungeeCord/pull/1333.diff","patch_url":"https://github.com/SpigotMC/BungeeCord/pull/1333.patch"},"body":"Messages sent via these subchannels are sent from BungeeCord to Bukkit/Spigot server.\r\nUse cases:\r\n1. If we want to send a plugin message to other servers in the proxy (e.g. using \"Forward\" subchannel) when player quit from server. We cannot do this in PlayerQuitEvent, because connection is closed. We may send our plugin message when server receive \"Quitting\" plugin message, because \"Quitting\" message is sending 100ms before BungeeCord close the connection with server.\r\n2. ConnectFail subchannel may be used to inform server, that sending player to other server failed (e.g. player isn't on whitelist), then server may try to connect player to other server."},"comment":{"url":"https://api.github.com/repos/SpigotMC/BungeeCord/issues/comments/70893214","html_url":"https://github.com/SpigotMC/BungeeCord/pull/1333#issuecomment-70893214","issue_url":"https://api.github.com/repos/SpigotMC/BungeeCord/issues/1333","id":70893214,"user":{"login":"IfarPL","id":8337502,"avatar_url":"https://avatars.githubusercontent.com/u/8337502?v=3","gravatar_id":"","url":"https://api.github.com/users/IfarPL","html_url":"https://github.com/IfarPL","followers_url":"https://api.github.com/users/IfarPL/followers","following_url":"https://api.github.com/users/IfarPL/following{/other_user}","gists_url":"https://api.github.com/users/IfarPL/gists{/gist_id}","starred_url":"https://api.github.com/users/IfarPL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IfarPL/subscriptions","organizations_url":"https://api.github.com/users/IfarPL/orgs","repos_url":"https://api.github.com/users/IfarPL/repos","events_url":"https://api.github.com/users/IfarPL/events{/privacy}","received_events_url":"https://api.github.com/users/IfarPL/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T18:29:23Z","updated_at":"2015-01-21T18:29:23Z","body":"Note that in both cases, at least one connection between proxy and server is active, so I don't understand your comment.\r\n"}}