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> <value>all</value>
</setting> </setting>
<setting name="RCON_BackupMessageCommand" serializeAs="String"> <setting name="RCON_BackupMessageCommand" serializeAs="String">
<value>Broadcast</value> <value />
</setting> </setting>
</ServerManagerTool.Config> </ServerManagerTool.Config>
</userSettings> </userSettings>

View file

@ -379,6 +379,11 @@ namespace ServerManagerTool
// check and update the public IP address // check and update the public IP address
DiscoverMachinePublicIP(Config.Default.ManagePublicIPAutomatically); 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); var installPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
PluginHelper.Instance.BetaEnabled = this.BetaVersion; PluginHelper.Instance.BetaEnabled = this.BetaVersion;
PluginHelper.Instance.LoadPlugins(installPath, true); PluginHelper.Instance.LoadPlugins(installPath, true);

View file

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

View file

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

View file

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

View file

@ -378,6 +378,11 @@ namespace ServerManagerTool
// check and update the public IP address // check and update the public IP address
DiscoverMachinePublicIP(Config.Default.ManagePublicIPAutomatically); 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); var installPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
PluginHelper.Instance.BetaEnabled = this.BetaVersion; PluginHelper.Instance.BetaEnabled = this.BetaVersion;
PluginHelper.Instance.LoadPlugins(installPath, true); PluginHelper.Instance.LoadPlugins(installPath, true);

View file

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

View file

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