{"id":44915903,"url":"https://github.com/joaisa17/minecraft-java-server","last_synced_at":"2026-02-18T01:50:54.627Z","repository":{"id":43301921,"uuid":"511216282","full_name":"joaisa17/minecraft-java-server","owner":"joaisa17","description":"Gives the ability to manage your Minecraft Java Edition server, using plain javascript/typescript. Inspired by @scriptserver/core","archived":false,"fork":false,"pushed_at":"2022-08-25T12:09:54.000Z","size":14,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T08:28:02.349Z","etag":null,"topics":["javascript","minecraft","server"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/joaisa17.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":"2022-07-06T16:38:43.000Z","updated_at":"2023-09-01T08:24:32.000Z","dependencies_parsed_at":"2022-09-23T10:42:33.802Z","dependency_job_id":null,"html_url":"https://github.com/joaisa17/minecraft-java-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joaisa17/minecraft-java-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaisa17%2Fminecraft-java-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaisa17%2Fminecraft-java-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaisa17%2Fminecraft-java-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaisa17%2Fminecraft-java-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaisa17","download_url":"https://codeload.github.com/joaisa17/minecraft-java-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaisa17%2Fminecraft-java-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29566366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T00:47:08.760Z","status":"ssl_error","status_checked_at":"2026-02-18T00:45:26.718Z","response_time":100,"last_error":"SSL_read: 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":["javascript","minecraft","server"],"created_at":"2026-02-18T01:50:54.100Z","updated_at":"2026-02-18T01:50:54.619Z","avatar_url":"https://github.com/joaisa17.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minecraft Java Server\nThis library helps you run and manage your\nMinecraft Java Edition server through a node.js environment.\nIt supports type declarations with Typescript, meaning you don't need to install any @types library.\n\nIt is heavily inspired by [@scriptserver/core](https://npmjs.com/package/@scriptserver/core). I created it after discovering a missing feature in the library, and decided to make my own, both to learn, and to be able to continue what I was working on.\n\nThe library utilizes Minecraft's rcon feature. It allows you to securely send commands through networking, and receive the output text through the response.\n\n## Usage\n### Installation\nRun the following command in your project's root directory:\n```bat\nnpm install minecraft-java-server --save\n```\n### Basic Usage\n```js\nimport { MinecraftServer } from 'minecraft-java-server';\n\nconst server = new MinecraftServer({\n    jar: 'server.jar',\n    path: 'C:/path/to/your/minecraft/server/directory',\n\n    args: ['-Xms4G', '-Xmx4G'],\n\n    // Minecraft's eula must be agreed to using this value\n    eula: true,\n\n    // every property is the equivalent of server.properties, except for vital ones\n    properties: {\n        motd: \"Minecraft server hosted with minecraft-java-server\",\n        \"max-players\": 10\n    }\n});\n\n// Start event\nserver.on('start', () =\u003e {\n    console.log('Server started');\n});\n\n// Stop event\nserver.on('stop', () =\u003e {\n    console.log('Server stopped');\n});\n\n// Start the server\nserver.start();\n\nserver.send('ban herobrine').then(response =\u003e {\n    console.log('Command result: ', response);\n}).catch(err =\u003e console.log('Failed to run command', err));\n```\nSince server.send returns a promise, this also works in an asynchronous context using await.\nThe promise is rejected if the server disconnects after queueing the command.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaisa17%2Fminecraft-java-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaisa17%2Fminecraft-java-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaisa17%2Fminecraft-java-server/lists"}