29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
export const FALLEN_AUTH_PROXY_BLOG_URL =
|
|
'https://blog.fallenbreath.me/zh-CN/2025/minecraft-service-proxy'
|
|
|
|
export const FALLEN_AUTH_PROXY_JAVA_ARGS = [
|
|
'-Dminecraft.api.auth.host=https://auth.msp.fallenbreath.me',
|
|
'-Dminecraft.api.account.host=https://account.msp.fallenbreath.me',
|
|
'-Dminecraft.api.session.host=https://session.msp.fallenbreath.me',
|
|
'-Dminecraft.api.services.host=https://services.msp.fallenbreath.me',
|
|
'-Dminecraft.api.profiles.host=https://profiles.msp.fallenbreath.me',
|
|
]
|
|
|
|
export const FALLEN_AUTH_PROXY_JAVA_ARGS_STRING = FALLEN_AUTH_PROXY_JAVA_ARGS.join(' ')
|
|
|
|
export const AUTO_GC_PRESET_ARG = '@axolotl:gc:auto'
|
|
|
|
const FALLEN_AUTH_PROXY_ARG_SET = new Set(FALLEN_AUTH_PROXY_JAVA_ARGS)
|
|
|
|
export function removeFallenAuthProxyArgs(args: string[]): string[] {
|
|
return args.filter((arg) => !FALLEN_AUTH_PROXY_ARG_SET.has(arg))
|
|
}
|
|
|
|
export function ensureFallenAuthProxyArgs(args: string[]): string[] {
|
|
return [...FALLEN_AUTH_PROXY_JAVA_ARGS, ...removeFallenAuthProxyArgs(args)]
|
|
}
|
|
|
|
export function hasFallenAuthProxyArgs(args: string[]): boolean {
|
|
return FALLEN_AUTH_PROXY_JAVA_ARGS.every((arg) => args.includes(arg))
|
|
}
|