diff --git a/QSB/QSBCore.cs b/QSB/QSBCore.cs index 03f8cbe8..0b546586 100644 --- a/QSB/QSBCore.cs +++ b/QSB/QSBCore.cs @@ -241,9 +241,9 @@ public class QSBCore : ModBehaviour public override void Configure(IModConfig config) { - DefaultServerIP = config.GetSettingsValue("defaultServerIP"); - IncompatibleModsAllowed = config.GetSettingsValue("incompatibleModsAllowed"); - ShipDamage = config.GetSettingsValue("shipDamage"); + DefaultServerIP = config.GetSettingsValue("Default Server IP"); + IncompatibleModsAllowed = config.GetSettingsValue("Incompatible Mods Allowed"); + ShipDamage = config.GetSettingsValue("Ship Damage"); } private void Update() diff --git a/QSB/QSBNetworkManager.cs b/QSB/QSBNetworkManager.cs index 28a05a52..addbb8ae 100644 --- a/QSB/QSBNetworkManager.cs +++ b/QSB/QSBNetworkManager.cs @@ -270,7 +270,7 @@ public class QSBNetworkManager : NetworkManager, IAddComponentOnStart { QSBCore.DefaultServerIP = networkAddress; var config = QSBCore.Helper.Config; - config.SetSettingsValue("defaultServerIP", networkAddress); + config.SetSettingsValue("Default Server IP", networkAddress); QSBCore.Helper.Storage.Save(config, Constants.ModConfigFileName); } diff --git a/QSB/default-config.json b/QSB/default-config.json index a8f1d66b..a7205ce7 100644 --- a/QSB/default-config.json +++ b/QSB/default-config.json @@ -1,8 +1,20 @@ { "enabled": true, "settings": { - "defaultServerIP": "localhost", - "incompatibleModsAllowed": false, - "shipDamage": true + "Default Server IP": { + "type": "text", + "value": "localhost", + "tooltip": "The last entered IP/ID. Used if you leave the connect prompt blank." + }, + "Incompatible Mods Allowed": { + "type": "toggle", + "value": false, + "tooltip": "Kicks players if they have certain mods." + }, + "Ship Damage": { + "type": "toggle", + "value": true, + "tooltip": "Take impact damage when inside the ship." + } } } \ No newline at end of file