adamaq01 / agones4j

A Java Game Server Client SDK for Agones

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Agones4J

Agones4J is a Java Game Server Client SDK for Agones (https://agones.dev/) that uses the exposed REST API of Agones

Example

Here is a simple example of marking the GameServer as ready and then adding a label to it.

// Instantiate a new SDK with the default port and URL
AgonesSDK agones = new AgonesSDK();

// Mark the server as ready
agones.ready().thenAccept(success -> {
    // Then add a label
    agones.setLabel("my-label", "dummy").thenAccept(success2 -> {
        System.out.println(success2 ? "Successfully set the label :D" : "It didn\'t work :(");
    });
});

Feel free to contribute to the project ;)

About

A Java Game Server Client SDK for Agones

License:MIT License


Languages

Language:Java 100.0%