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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user