{"id":16793727,"url":"https://github.com/grandmoff100/mcserverapi","last_synced_at":"2025-07-15T07:06:21.879Z","repository":{"id":56590110,"uuid":"293666433","full_name":"GrandMoff100/MCServerAPI","owner":"GrandMoff100","description":"A framework for making events triggered by events in the Minecraft Server Console.","archived":false,"fork":false,"pushed_at":"2020-10-29T22:02:33.000Z","size":47258,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T12:15:29.482Z","etag":null,"topics":["framework","hacktoberfest","hacktoberfest2020","minecraft","minecraft-api","python","python3"],"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/GrandMoff100.png","metadata":{"files":{"readme":"README.md","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":"2020-09-08T01:08:26.000Z","updated_at":"2020-10-29T21:47:00.000Z","dependencies_parsed_at":"2022-08-15T21:31:13.270Z","dependency_job_id":null,"html_url":"https://github.com/GrandMoff100/MCServerAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandMoff100%2FMCServerAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandMoff100%2FMCServerAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandMoff100%2FMCServerAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GrandMoff100%2FMCServerAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GrandMoff100","download_url":"https://codeload.github.com/GrandMoff100/MCServerAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960636,"owners_count":20375107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["framework","hacktoberfest","hacktoberfest2020","minecraft","minecraft-api","python","python3"],"created_at":"2024-10-13T08:50:06.404Z","updated_at":"2025-03-17T02:24:22.108Z","avatar_url":"https://github.com/GrandMoff100.png","language":"Python","readme":"# MCServerAPI\nMCServerAPI is a python framework for running and creating events triggered by minecraft events in the server-console.\n\n## Example\n\n```py\nfrom mcserverapi import Server, Parser\n    \n\nserver = Server('\u003cjar location\u003e') # Can either relative or absolute\n\nclass MyParser(Parser):\n  def on_player_message(self, ctx):\n    player, message = ctx\n    server.run_cmd('say', player, 'has said', message)\n  \n  def on_ready(self, ctx):\n    print('Server took', ctx[0], 'to start.')\n\nparser = MyParser(server)\n\njava_flags = {\n  '-Xmx': '3G',\n  '-Xms': '1G'\n}\n\nserver.start(**java_flags)\n\nparser.watch_for_events() # This is a blocking call. If you don't want it to block it, run it in a thread like so... threading.Thread(target=parser.watch_for_events).start()\n```\n\n\n# Changelog\n- 1.3.1:\nYou can now pass arguments and flags to .start() like so... \n\u003e (Note that init has been modified so you have to include any flags or arguments besides -jar and nogui)\n```py\nserver.start('\u003carg1\u003e', '\u003carg2\u003e',**{'-Xmx':'3g', '-Xms':'1g'})\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandmoff100%2Fmcserverapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrandmoff100%2Fmcserverapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrandmoff100%2Fmcserverapi/lists"}