Unable to configure the CS fileSolved

Hi, and first, thank you for this excellent mod, we love it on my server.

I have just a small problem, I would like to slightly modify the GuardedCrate.cs file, just to make the chute drag a lot more and have different colors/messages at starts/stops/ends, but my modifications continue to be ignored ; any idea ? Thanks !:3

#region Oxide

        protected override void LoadDefaultMessages()
        {
            lang.RegisterMessages (new Dictionary<string, string>
            {
                { "InvalidSyntax", "gc start|stop" },
                { "Permission", "No permission" },
                { "CreateEvent", "<color=#cc3610>Guarded Crate : </color><color=#ff8c00>New guarded crate event starting, please stand by.</color>" },
                { "CleanEvents", "<color=#cc3610>Guarded Crate : </color><color=#ff8c00>Cleaning up all current events.</color>" },
                { "EventStarted", "<color=#cc3610>Guarded Crate : </color><color=#858585>{0}</color>, event started at <color=#82635b>{1}</color>, eliminate the guards before they leave in <color=#a30000>{2}</color>." },
                { "EventEnded", "<color=#cc3610>Guarded Crate : </color><color=#239632>The event ended at </color><color=#82635b>{0}</color><color=#239632>, </color><color=#a30000>{1}</color><color=#239632> nailed it !</color>" },
                { "EventClear", "<color=#cc3610>Guarded Crate : </color><color=#a30000>The event ended at </color><color=#82635b>{0}</color><color=#a30000> ; Maybe next time !</color>" },
            }, this);
        }

This is for the messages and their colors, and below is for the chute drag, which both of them are ignored, even if I reload the plugin.

 

private void Awake()
            {
                _crate = gameObject.GetComponent<BaseEntity>();
                
                _crate.GetComponent<Rigidbody>().drag = 2.50f;

                SpawnChute();
            }
You should be editing the files under oxide/lang and oxide/config, not the .cs for messages. If you want to edit that, you'd need to remove the existing files under those paths.
I got it for the /config and the /data files, and thanks to you I now know to also configure /lang ones, purrfect, thank you very much !:D
Locked automatically