Dont remove from server if not connected to one.
This commit is contained in:
parent
ec35482102
commit
8f32374cda
@ -152,12 +152,12 @@ public class UserConnection extends GenericConnection implements ProxiedPlayer
|
|||||||
|
|
||||||
private void destroySelf(String reason)
|
private void destroySelf(String reason)
|
||||||
{
|
{
|
||||||
server.getInfo().removePlayer(this);
|
|
||||||
ProxyServer.getInstance().getPlayers().remove(this);
|
ProxyServer.getInstance().getPlayers().remove(this);
|
||||||
|
|
||||||
disconnect(reason);
|
disconnect(reason);
|
||||||
if (server != null)
|
if (server != null)
|
||||||
{
|
{
|
||||||
|
server.getInfo().removePlayer(this);
|
||||||
server.disconnect("Quitting");
|
server.disconnect("Quitting");
|
||||||
ProxyServer.getInstance().getReconnectHandler().setServer(this);
|
ProxyServer.getInstance().getReconnectHandler().setServer(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user