mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Added ability to insert custom text into the server watermark at the bottom via core.json config
This commit is contained in:
parent
198f864fe6
commit
f68827bdc2
@ -28,5 +28,6 @@
|
|||||||
"giveCommandEnabled": true
|
"giveCommandEnabled": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"customWatermarkLocaleKeys": []
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,8 @@ export interface ICoreConfig extends IBaseConfig
|
|||||||
commit?: string
|
commit?: string
|
||||||
/** Timestamp of server build */
|
/** Timestamp of server build */
|
||||||
buildTime?: string
|
buildTime?: string
|
||||||
|
/** Server locale keys that will be added to the bottom of the startup watermark */
|
||||||
|
customWatermarkLocaleKeys?: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IBsgLogging
|
export interface IBsgLogging
|
||||||
|
@ -95,6 +95,14 @@ export class Watermark
|
|||||||
this.text = this.text.concat([...modding]);
|
this.text = this.text.concat([...modding]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.sptConfig.customWatermarkLocaleKeys?.length > 0)
|
||||||
|
{
|
||||||
|
for (const key of this.sptConfig.customWatermarkLocaleKeys)
|
||||||
|
{
|
||||||
|
this.text.push(...["", this.localisationService.getText(key)]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.setTitle();
|
this.setTitle();
|
||||||
this.resetCursor();
|
this.resetCursor();
|
||||||
this.draw();
|
this.draw();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user