Skip to content

Commit

Permalink
Ignore none and spectator for spawns
Browse files Browse the repository at this point in the history
  • Loading branch information
PintTheDragon committed Oct 20, 2020
1 parent d4c5670 commit 4fad5e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SCPStats/EventHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ internal static void OnRoleChanged(ChangingRoleEventArgs ev)
SendRequest(data, "https://scpstats.com/plugin/event/escape");
}

if (ev.Player.Role == RoleType.None || ev.Player.Role == RoleType.Spectator) return;

var data2 = new Dictionary<string, string>()
{
{"serverid", SCPStats.Singleton.Config.ServerId},
Expand Down

0 comments on commit 4fad5e4

Please sign in to comment.