1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

Add maxPlayers API

This commit is contained in:
RednedEpic
2022-03-19 22:35:41 -05:00
parent f8e9662665
commit 95747d5649
2 changed files with 14 additions and 0 deletions

View File

@@ -591,6 +591,11 @@ public class GeyserImpl implements GeyserApi {
return this.bedrockListener;
}
@Override
public int maxPlayers() {
return this.getConfig().getMaxPlayers();
}
public static GeyserImpl start(PlatformType platformType, GeyserBootstrap bootstrap) {
if (instance == null) {
return new GeyserImpl(platformType, bootstrap);