Skip to content

Commit

Permalink
OR
Browse files Browse the repository at this point in the history
  • Loading branch information
PintTheDragon committed Mar 9, 2021
1 parent e67671e commit ab8d1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SCPStats/EventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ internal static void OnRoleChanged(ChangingRoleEventArgs ev)
cufferID = null;
cufferRole = null;
}
if(playerID != null && cufferID != null) WebsocketHandler.SendRequest(RequestType.Escape, "{\"playerid\":\""+playerID+"\",\"role\":\""+((int) ev.Player.Role).ToString()+"\",\"cufferid\":\""+cufferID+"\",\"cufferrole\":\""+cufferRole+"\"}");
if(playerID != null || cufferID != null) WebsocketHandler.SendRequest(RequestType.Escape, "{\"playerid\":\""+playerID+"\",\"role\":\""+((int) ev.Player.Role).ToString()+"\",\"cufferid\":\""+cufferID+"\",\"cufferrole\":\""+cufferRole+"\"}");
}

if (ev.Player.DoNotTrack || ev.NewRole == RoleType.None || ev.NewRole == RoleType.Spectator) return;
Expand Down

0 comments on commit ab8d1a6

Please sign in to comment.