{"id":16624340,"url":"https://github.com/dcramer/minecraft-tools","last_synced_at":"2026-04-20T17:32:44.377Z","repository":{"id":1014067,"uuid":"838221","full_name":"dcramer/minecraft-tools","owner":"dcramer","description":null,"archived":false,"fork":false,"pushed_at":"2010-08-31T21:31:06.000Z","size":100,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-30T05:42:28.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcramer.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-08-14T20:50:59.000Z","updated_at":"2023-09-08T16:27:18.000Z","dependencies_parsed_at":"2022-07-06T01:32:17.936Z","dependency_job_id":null,"html_url":"https://github.com/dcramer/minecraft-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dcramer/minecraft-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fminecraft-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fminecraft-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fminecraft-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fminecraft-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcramer","download_url":"https://codeload.github.com/dcramer/minecraft-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcramer%2Fminecraft-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32057631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T03:46:05.050Z","updated_at":"2026-04-20T17:32:44.347Z","avatar_url":"https://github.com/dcramer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"So far this just includes a log parser, and it only works with MySQL.\n\nInstall\n-------\n\nCreate a database/user called \"minecraft\". If you want to use another value, modify parser as\nyou see fit. Once created, run the following::\n\n    mysql -uminecraft -Dminecraft \u003c sql/visitors.sql\n\nNow pop open a screen session, via `screen -s mclog`. Since the script isn't daemonized this will\nkeep it running after you close your terminal.\n\nTo start the log parser, use the following::\n\n    python parser.py /home/minecraft/server.log\n\nObviously replace the path with the precise path to your servers log.\n\nUsage\n-----\n\nSome sample queries, which we use on the Nibbits Minecraft site can be seen below.\n\nOnline members, sorted by duration online::\n\n    select name, unix_timestamp(now()) - unix_timestamp(date_joined) as duration\n    from mc_visitor\n    where date_left is null\n    order by duration desc;\n\nAll visitors, sorted by time played::\n\n    select name, count(*) as num, sum(unix_timestamp(ifnull(date_left, now())) - unix_timestamp(date_joined)) as duration,\n      max(date_joined) as last_seen, min(date_joined) as first_seen\n    from mc_visitor\n    group by name\n    having duration \u003e 5\n    order by duration desc, name","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcramer%2Fminecraft-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcramer%2Fminecraft-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcramer%2Fminecraft-tools/lists"}