Added setting to allow/deny player wiping a profile via launcher - default true
This commit is contained in:
parent
adc71829f3
commit
e48362ae6e
@ -5,6 +5,7 @@
|
||||
"serverName": "SPT Server",
|
||||
"profileSaveIntervalSeconds": 15,
|
||||
"sptFriendNickname": "SPT",
|
||||
"allowProfileWipe": true,
|
||||
"bsgLogging": {
|
||||
"verbosity": 6,
|
||||
"sendToServer": false
|
||||
|
@ -172,8 +172,18 @@ export class LauncherController
|
||||
return sessionID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle launcher requesting profile be wiped
|
||||
* @param info IRegisterData
|
||||
* @returns Session id
|
||||
*/
|
||||
public wipe(info: IRegisterData): string
|
||||
{
|
||||
if (!this.coreConfig.allowProfileWipe)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
const sessionID = this.login(info);
|
||||
|
||||
if (sessionID)
|
||||
|
@ -9,6 +9,7 @@ export interface ICoreConfig extends IBaseConfig
|
||||
serverName: string;
|
||||
profileSaveIntervalSeconds: number;
|
||||
sptFriendNickname: string;
|
||||
allowProfileWipe: boolean;
|
||||
bsgLogging: IBsgLogging;
|
||||
release: IRelease;
|
||||
fixes: IGameFixes;
|
||||
|
Loading…
Reference in New Issue
Block a user