Exemple #1
0
        protected override void LoadDefaultConfig()
        {
            SystemNotificationsConfig _config = new SystemNotificationsConfig();

            _config.player_notifications.enabled         = true;
            _config.player_notifications.message_online  = "An opponent entered the server.";
            _config.player_notifications.message_offline = "An opponent has retreated from the server.";
            _config.player_notifications.message_color   = "#FFF";
            _config.cargo_plane_deployed.enabled         = true;
            _config.cargo_plane_deployed.message         = "Supply plane incoming...";
            _config.cargo_plane_deployed.message_color   = "#0C0";
            _config.supply_drop_deployed.enabled         = true;
            _config.supply_drop_deployed.message         = "Supply cargo dropped! Look up!";
            _config.supply_drop_deployed.message_color   = "#0C0";
            _config.timed_crate_deployed.enabled         = false;
            _config.timed_crate_deployed.message         = "A hackable crate has be put on the map.";
            _config.timed_crate_deployed.message_color   = "#0C0";
            _config.cargo_ship_entered.enabled           = true;
            _config.cargo_ship_entered.message           = "Cargoship incoming...";
            _config.cargo_ship_entered.message_color     = "#0C0";
            _config.ch47_entered.enabled                = false;
            _config.ch47_entered.message                = "Chinook 47 incoming...";
            _config.ch47_entered.message_color          = "#0C0";
            _config.patrol_copter_entered.enabled       = true;
            _config.patrol_copter_entered.message       = "Patrol Helecopter! Run for cover, or shoot it down!";
            _config.patrol_copter_entered.message_color = "#0C0";
            _config.server_info.wipe_info_enabled       = false;
            _config.server_info.wipe_info_message       = "Jan 1, 2019 UTC";
            _config.server_info.wipe_info_message_color = "#FFF";

            SaveConfig(_config);
        }
Exemple #2
0
 void InitConfig()
 {
     config = Config.ReadObject <SystemNotificationsConfig>();
 }
Exemple #3
0
 void SaveConfig(SystemNotificationsConfig config)
 {
     Config.WriteObject(config, true);
 }