@Override
    public Tristate checkPermission(String permission) {
        assertInitialised();

        if (permission == null) {
            throw new NullPointerException("permission");
        }

        return checkPermission(permission, this.queryOptionsSupplier.getQueryOptions());
    }
Gets a {@link UserCapability} for a given {@link ServerPlayer}.

@param player the player
@return the capability, or null
forge/src/main/java/me/lucko/luckperms/forge/capabilities/UserCapabilityImpl.java