{"id":19839020,"url":"https://github.com/litarvan/server-queue","last_synced_at":"2025-05-01T18:31:49.520Z","repository":{"id":78843525,"uuid":"176183247","full_name":"Litarvan/server-queue","owner":"Litarvan","description":"Minecraft server connection queue server and API","archived":false,"fork":false,"pushed_at":"2019-03-18T19:15:32.000Z","size":74,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T16:53:36.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Litarvan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-18T01:28:40.000Z","updated_at":"2023-10-28T11:38:25.000Z","dependencies_parsed_at":"2023-03-12T05:59:00.274Z","dependency_job_id":null,"html_url":"https://github.com/Litarvan/server-queue","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litarvan%2Fserver-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litarvan%2Fserver-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litarvan%2Fserver-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Litarvan%2Fserver-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Litarvan","download_url":"https://codeload.github.com/Litarvan/server-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924814,"owners_count":21666039,"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":[],"created_at":"2024-11-12T12:19:56.489Z","updated_at":"2025-05-01T18:31:49.509Z","avatar_url":"https://github.com/Litarvan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server queue\n\n[![Version](https://img.shields.io/github/release/Litarvan/server-queue.svg?style=flat-square)](https://github.com/Litarvan/server-queue/releases)\n[![GitHub All Releases](https://img.shields.io/github/downloads/Litarvan/server-queue/total.svg?style=flat-square)](https://github.com/Litarvan/server-queue/releases)\n\nA Minecraft server connection queue.\n\n## Server\n\nThe server is the player queue. Player will connect to it using a Minecraft client which has been modded to implement the client API, and it will send back their position in the queue, and then when they can connect.\n\n### Usage\n\nDownload the last server-queue-x.x.x.zip release from https://github.com/Litarvan/server-queue/releases, then\n\n```\n$ unzip server-queue-x.x.x.zip\n$ cd server-queue-x.x.x/\n$ bin/server-queue \u003cport\u003e \u003cminecraftServerAddress\u003e \u003cminecraftServerPort\u003e\n```\n\n### Building\n\n```\n$ ./gradlew distZip # Or just gradlew distZip on Windows\n```\n\nYou can take server-queue-x.x.x.zip in build/distributions/\n\n## Client\n\n### Import\n\n```\nrepositories {\n    url {\n        maven 'https://litarvan.github.io/maven'\n    }\n}\n\ndependencies {\n    implementation 'fr.litarvan:server-queue-client:1.0.0'\n}\n```\n\n### Usage\n\n```\nQueueClient client = new QueueClient(\"127.0.0.1\", 1234); // Puts your server-queue address and port\n\nclient.setOnPositionUpdate(position -\u003e {\n    System.out.println(\"Position updated : \" + position);\n});\nclient.setOnConnect(() -\u003e {\n    System.out.println(\"Done ! We can connect !\");\n    // Do whatever you want to connect\n    \n    // Connection is closed automatically after this callback\n});\n\nclient.start(); // ou client.startInSeparatedThread();\n```\n\n### Building\n\n```\n$ ./gradlew build # Or just gradlew build on Windows\n```\n\nYou can take server-queue-client-x.x.x.jar in queue-client/build/libs/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitarvan%2Fserver-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitarvan%2Fserver-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitarvan%2Fserver-queue/lists"}