mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Finished the remaing bot commands
This commit is contained in:
parent
0f3c6e6be9
commit
aa62646f0f
23 changed files with 1041 additions and 287 deletions
|
|
@ -664,7 +664,7 @@ namespace ServerManagerTool
|
|||
ProfileId = server.Runtime.ProfileSnapshot.ProfileId,
|
||||
ProfileName = server.Runtime.ProfileSnapshot.ProfileName,
|
||||
MaxPlayers = server.Runtime.MaxPlayers,
|
||||
RCONHost = server.Runtime.ProfileSnapshot.ServerIP,
|
||||
RCONHost = server.Runtime.ProfileSnapshot.ServerIPAddress.ToString(),
|
||||
RCONPort = server.Runtime.ProfileSnapshot.RCONPort,
|
||||
|
||||
PGM_Enabled = server.Profile.PGM_Enabled,
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ namespace ServerManagerTool.Windows
|
|||
|
||||
var profile = ServerProfileSnapshot.Create(server.Profile);
|
||||
|
||||
var exitCode = await Task.Run(() => app.PerformProfileBackup(profile));
|
||||
var exitCode = await Task.Run(() => app.PerformProfileBackup(profile, CancellationToken.None));
|
||||
if (exitCode != ServerApp.EXITCODE_NORMALEXIT && exitCode != ServerApp.EXITCODE_CANCELLED)
|
||||
{
|
||||
throw new ApplicationException($"An error occured during the backup process - ExitCode: {exitCode}");
|
||||
|
|
|
|||
|
|
@ -1099,7 +1099,7 @@ namespace ServerManagerTool
|
|||
|
||||
var profile = ServerProfileSnapshot.Create(Server.Profile);
|
||||
|
||||
var exitCode = await Task.Run(() => app.PerformProfileBackup(profile));
|
||||
var exitCode = await Task.Run(() => app.PerformProfileBackup(profile, CancellationToken.None));
|
||||
if (exitCode != ServerApp.EXITCODE_NORMALEXIT && exitCode != ServerApp.EXITCODE_CANCELLED)
|
||||
throw new ApplicationException($"An error occured during the backup process - ExitCode: {exitCode}");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue