timer.Repeat(10f, 0, () => { foreach(BasePlayer player in BasePlayer.activePlayerList) { string playerID = player.userID.ToString(); string playerStatsJson = dataFile[playerID] as string; Stats playerStats = JsonConvert.DeserializeObject<Stats>(playerStatsJson); int kills = playerStats.kills; if (player kills > * other player kills) { // code here } } });