Skip to content

Commit d27642b

Browse files
committed
Fixup missed bits
1 parent aef96a1 commit d27642b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/main/java/dev/agones/AgonesSDK.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
import dev.agones.model.request.PlayerInfo;
1111
import dev.agones.model.request.Reservation;
1212
import okhttp3.HttpUrl;
13-
import okhttp3.OkHttpClient;
14-
import okhttp3.Request;
1513
import retrofit2.Retrofit;
1614
import retrofit2.converter.gson.GsonConverterFactory;
1715

@@ -44,6 +42,7 @@ public AgonesSDK(int port) {
4442
.build();
4543
}
4644

45+
@SuppressWarnings("unchecked")
4746
private <E extends Endpoints> E getEndpoints(Class<E> endpoints) {
4847
return (E) endpointsMap.computeIfAbsent(endpoints, __ -> retrofit.create(endpoints));
4948
}
@@ -80,8 +79,8 @@ public void shutdown() {
8079
getEndpoints(AgonesEndpoints.class).shutdown();
8180
}
8281

83-
public void gameServer() {
84-
getEndpoints(AgonesEndpoints.class).gameServer();
82+
public GameServer gameServer() {
83+
return getEndpoints(AgonesEndpoints.class).gameServer();
8584
}
8685

8786
public void label(String key, String value) {

0 commit comments

Comments
 (0)