set RCON_BackupMessageCommand to RCON_MessageCommand is empty

This commit is contained in:
Brett Hewitson 2022-05-06 16:56:31 +10:00
parent 7b3ae3263c
commit 3d760b20d6
8 changed files with 16 additions and 6 deletions

View file

@ -892,7 +892,7 @@
<value>all</value>
</setting>
<setting name="RCON_BackupMessageCommand" serializeAs="String">
<value>Broadcast</value>
<value />
</setting>
</ServerManagerTool.Config>
</userSettings>

View file

@ -379,6 +379,11 @@ namespace ServerManagerTool
// check and update the public IP address
DiscoverMachinePublicIP(Config.Default.ManagePublicIPAutomatically);
if (string.IsNullOrWhiteSpace(Config.Default.RCON_BackupMessageCommand))
{
Config.Default.RCON_BackupMessageCommand = Config.Default.RCON_MessageCommand;
}
var installPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
PluginHelper.Instance.BetaEnabled = this.BetaVersion;
PluginHelper.Instance.LoadPlugins(installPath, true);

View file

@ -3162,7 +3162,7 @@ namespace ServerManagerTool {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Broadcast")]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string RCON_BackupMessageCommand {
get {
return ((string)(this["RCON_BackupMessageCommand"]));

View file

@ -870,7 +870,7 @@
<Value Profile="(Default)">SaveGames</Value>
</Setting>
<Setting Name="RCON_BackupMessageCommand" Type="System.String" Scope="User">
<Value Profile="(Default)">Broadcast</Value>
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>

View file

@ -667,7 +667,7 @@
<value>all</value>
</setting>
<setting name="RCON_BackupMessageCommand" serializeAs="String">
<value>Broadcast</value>
<value />
</setting>
</ServerManagerTool.Config>
</userSettings>

View file

@ -378,6 +378,11 @@ namespace ServerManagerTool
// check and update the public IP address
DiscoverMachinePublicIP(Config.Default.ManagePublicIPAutomatically);
if (string.IsNullOrWhiteSpace(Config.Default.RCON_BackupMessageCommand))
{
Config.Default.RCON_BackupMessageCommand = Config.Default.RCON_MessageCommand;
}
var installPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
PluginHelper.Instance.BetaEnabled = this.BetaVersion;
PluginHelper.Instance.LoadPlugins(installPath, true);

View file

@ -2345,7 +2345,7 @@ namespace ServerManagerTool {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Broadcast")]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string RCON_BackupMessageCommand {
get {
return ((string)(this["RCON_BackupMessageCommand"]));

View file

@ -645,7 +645,7 @@
<Value Profile="(Default)">SaveGames</Value>
</Setting>
<Setting Name="RCON_BackupMessageCommand" Type="System.String" Scope="User">
<Value Profile="(Default)">Broadcast</Value>
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>