mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-16 07:10:35 +00:00
testing
This commit is contained in:
parent
849b6d1e7e
commit
612d219b26
@ -40,9 +40,9 @@ internal class PlayerKickMessage : QSBMessage<string>
|
||||
|
||||
private void KickPlayer()
|
||||
{
|
||||
var connectionToClient = PlayerId.GetNetworkConnection();
|
||||
connectionToClient.Disconnect();
|
||||
Transport.activeTransport.OnServerDisconnected(connectionToClient.connectionId);
|
||||
//var connectionToClient = PlayerId.GetNetworkConnection();
|
||||
//connectionToClient.Disconnect();
|
||||
//Transport.activeTransport.OnServerDisconnected(connectionToClient.connectionId);
|
||||
}
|
||||
|
||||
public override void OnReceiveRemote()
|
||||
@ -61,5 +61,7 @@ internal class PlayerKickMessage : QSBMessage<string>
|
||||
|
||||
DebugLog.ToAll(string.Format(QSBLocalization.Current.KickedFromServer, Data));
|
||||
MenuManager.Instance.OnKicked(Data);
|
||||
|
||||
NetworkClient.Disconnect();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user