Exemplo n.º 1
0
 public virtual async Task Close(DisconnectReasons disconnectReason)
 {
     await Send(new SystemDisconnectMessage(disconnectReason));
     await Close(disconnectReason.ToString());
 }
Exemplo n.º 2
0
 public static void Postfix(AmongUsClient __instance, [HarmonyArgument(0)] ClientData client, [HarmonyArgument(1)] DisconnectReasons reason)
 {
     Logger.info($"Player \"{client.PlayerName}(ID:{client.Id})\" Left (Reason: {reason.ToString()})", "Session");
 }