@Override
    public int getPlayerCount() {
        return getServer().map(server -> server.onlinePlayers().size()).orElse(0);
    }
Injected configuration directory for the plugin
sponge/src/main/java/me/lucko/luckperms/sponge/LPSpongeBootstrap.java