1. Code:
    using Oxide.Core.Libraries.Covalence;namespace Oxide.Plugins
    {
        [Info("EpicPlugin", "Unknown", "1.0.0")]
        [Description("A basic chat command")]    class CsharpTest : CovalencePlugin
        {        protected override void LoadDefaultConfig()
            {
              PrintWarning("Creating a new configuration file");
              Config.Clear();
              Config["wipedate"] = "DATE";
              SaveConfig();
            }
            [Command("WipeInfo")]
            void TestCommand(IPlayer player, string command, string[] args)
            {
                player.Reply(Config["wipedate"]);
            }        [Command("WipeChangelast")]
              void wipecmd(IPlayer player, string command, string[] args)
              {
                  Config["wipedate"] = args[0];
                  SaveConfig();
                  player.Reply("The wipe date is " + Config["wipedate"] + " !");          }    }
    }
    
    [DOUBLEPOST=1470258566][/DOUBLEPOST]error code
    (22:08:53) | [Oxide] 22:02 [Error] CsharpTest.cs(23,32): error CS1503: Argument `#1' cannot convert `object' expression to type `string'
     
  2. Try replacing:
    Code:
    player.Reply(Config["wipedate"]);
    with:
    Code:
    player.Reply(Config["wipedate"].ToString());
     
  3. Wulf

    Wulf Community Admin

    I'd highly recommend setting up a project in Visual Studio, it will give you insight and answers to most of your questions.
     
  4. thanks i will give it a go :)