https://github.com/litarvan/server-queue
Minecraft server connection queue server and API
https://github.com/litarvan/server-queue
Last synced: about 1 year ago
JSON representation
Minecraft server connection queue server and API
- Host: GitHub
- URL: https://github.com/litarvan/server-queue
- Owner: Litarvan
- License: gpl-3.0
- Created: 2019-03-18T01:28:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-18T19:15:32.000Z (over 7 years ago)
- Last Synced: 2025-04-06T16:53:36.234Z (about 1 year ago)
- Language: Java
- Size: 72.3 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Server queue
[](https://github.com/Litarvan/server-queue/releases)
[](https://github.com/Litarvan/server-queue/releases)
A Minecraft server connection queue.
## Server
The 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.
### Usage
Download the last server-queue-x.x.x.zip release from https://github.com/Litarvan/server-queue/releases, then
```
$ unzip server-queue-x.x.x.zip
$ cd server-queue-x.x.x/
$ bin/server-queue
```
### Building
```
$ ./gradlew distZip # Or just gradlew distZip on Windows
```
You can take server-queue-x.x.x.zip in build/distributions/
## Client
### Import
```
repositories {
url {
maven 'https://litarvan.github.io/maven'
}
}
dependencies {
implementation 'fr.litarvan:server-queue-client:1.0.0'
}
```
### Usage
```
QueueClient client = new QueueClient("127.0.0.1", 1234); // Puts your server-queue address and port
client.setOnPositionUpdate(position -> {
System.out.println("Position updated : " + position);
});
client.setOnConnect(() -> {
System.out.println("Done ! We can connect !");
// Do whatever you want to connect
// Connection is closed automatically after this callback
});
client.start(); // ou client.startInSeparatedThread();
```
### Building
```
$ ./gradlew build # Or just gradlew build on Windows
```
You can take server-queue-client-x.x.x.jar in queue-client/build/libs/