Error while compiling my pluginSolved
So, I've been banging my head against this trying to figure out what's wrong and could use a second set of eyes, at the moment this plugin shouldn't actually do anything yet, just trying to get it to compile. The error I get is:

"(15:28:22) | Error while compiling: Wipeday.cs(40,9): error CS1056: Unexpected character `​' "

using System;
using System.Collections.Generic;
using Oxide.Core.Libraries.Covalence;

namespace Oxide.Plugins
{
    [Info("Wipeday", "Oddyseous AKA Oddy", "1.0.0")]
    [Description("Allows you to execute multiple commands & wipe data files with a single command")]
    class Wipeday : CovalencePlugin
    {
        public static Wipeday Plugin;
        private new void LoadDefaultConfig()
        {
            PrintWarning("Creating a new config file for Wipeday");
            Config.Clear();
            //  string ServerCommand1 = Config["ServerCommand1"];
            //  string ServerCommand2 = Config["ServerCommand2"];
            //  string ServerCommand3 = Config["ServerCommand3"];

            Config["ServerCommand1"] = true;
            Config["ServerCommand2"] = true;
            Config["ServerCommand3"] = true;
            SaveConfig();
            // LoadDefaultConfig;
        }
        private void Init()
        {
           AddCovalenceCommand("wipeday", this, "CommandItself");
            permission.RegisterPermission("wipeday.use");
        }
          private void CommandItself(IPlayer player, string wipeday, string[] args)
         {
       // if (player.HasPermission("wipeday.use"))
         //{
       // server.Command(ServerCommand1, "args");
      //  }
       }​
    
    }
  
}​
  1. public static Wipeday Plugin; can be removed, you aren't using that
  2. Config.Clear(); can be removed, a default config is only loaded once
  3. SaveConfig(); can be removed, it's already saved when generated
  4. Your error is with the CommandItself method; you're commenting out the closing }
In response to Wulf ():
public static Wipeday Plugin; can be removed, you aren't using thatConfig.Clear(); can be removed,...
I uncommented that out but receive the same error

using System;
using System.Collections.Generic;
using Oxide.Core.Libraries.Covalence;

namespace Oxide.Plugins
{
    [Info("Wipeday", "Oddyseous AKA Oddy", "1.0.0")]
    [Description("Allows you to execute multiple commands & wipe data files with a single command")]
    class Wipeday : CovalencePlugin
    {
        public static Wipeday Plugin;
        private new void LoadDefaultConfig()
        {
            PrintWarning("Creating a new config file for Wipeday");
            Config.Clear();
            //  string ServerCommand1 = Config["ServerCommand1"];
            //  string ServerCommand2 = Config["ServerCommand2"];
            //  string ServerCommand3 = Config["ServerCommand3"];

            Config["ServerCommand1"] = true;
            Config["ServerCommand2"] = true;
            Config["ServerCommand3"] = true;
            SaveConfig();
            // LoadDefaultConfig;
        }
        private void Init()
        {
           AddCovalenceCommand("wipeday", this, "CommandItself");
            permission.RegisterPermission("wipeday.use");
        }
          private void CommandItself(IPlayer player, string wipeday, string[] args)
         {
           if (player.HasPermission("wipeday.use"))
         {
           server.Command(ServerCommand1, "args");
         }
         }​
    
    }
  
}​
In response to Oddyseous ():
I uncommented that out but receive the same error

using System;using System.Collections...
Now you are trying to call a variable that doens't exit: ServerCommand1.
Okay so I commented that out:

  private void CommandItself(IPlayer player, string wipeday, string[] args)
         {
           if (player.HasPermission("wipeday.use"))
         {
           //server.Command(ServerCommand1, "args");
         }
         }​​

error is the same.

In response to Oddyseous ():
Okay so I commented that out:

private void CommandItself(IPlayer player, string wipeda...
Could you show the full error please?

(15:40:03) | Error while compiling: Wipeday.cs(40,9): error CS1056: Unexpected character `​'

In response to Oddyseous ():
(15:40:03) | Error while compiling: Wipeday.cs(40,9): error CS1056: Unexpected character `​'
So what's on line 40?
Nothing is on line 40 =\

Merged post

It claims line 40 with 39 lines
In response to Oddyseous ():
Nothing is on line 40 =\

Merged post

It claims line 40 with 39 lines
I would recommend setting up a Visual Studio project and opening it in that, should show you exactly where the issue is.
new error: (16:09:16) | Error while compiling: Wipeday.cs(31,24): error CS1501: No overload for method `RegisterPermission' takes `1' arguments


using System;
using System.Collections.Generic;
using Oxide.Core.Libraries.Covalence;

namespace Oxide.Plugins
{
    [Info("Wipeday", "Oddyseous AKA Oddy", "1.0.0")]
    [Description("Allows you to execute multiple commands & wipe data files with a single command")]
    class Wipeday : CovalencePlugin
    {
        public static Wipeday Plugin;
        private new void LoadDefaultConfig()
        {
            PrintWarning("Creating a new config file for Wipeday");
            Config.Clear();
            //  string ServerCommand1 = Config["ServerCommand1"];
            //  string ServerCommand2 = Config["ServerCommand2"];
            //  string ServerCommand3 = Config["ServerCommand3"];
            Config["ServerCommand1"] = true;
            Config["ServerCommand2"] = true;
            Config["ServerCommand3"] = true;
            SaveConfig();
            // LoadDefaultConfig;
        }
        private void Init()
        {
            AddCovalenceCommand("wipeday", this, "CommandItself");
            permission.RegisterPermission("wipeday.use");
        }
        private void CommandItself(IPlayer player, string wipeday, string[] args)
        {
            if (player.HasPermission("wipeday.use"))
Line 31     {
                //server.Command(ServerCommand1, "args");
            }
            //"chat.say /chatcommand"
        }
    }
}​
In response to Wulf ():
I would recommend setting up a Visual Studio project and opening it in that, should show you exactly...
I'm using Visual Studio 2017 Community edition.

Merged post

I think at this point I'll just start over, thanks tho lol
Locked automatically