1. What am I doing wrong?

    Code:
    04 ForServer - Failed to compile: ForServer.cs(223,35): error CS0119: Expression denotes a `method group', where a `variable', `value' or `type' was expected
    line 223:
    Code:
    [ChatCommand("stop")]        void stop(BasePlayer player, string command, string[] args)
            {
                string pass = Config.Get<string>("Password");
                if (!HasPermission(player.UserIDString, perm))
                {
                    SendReply(player, Lang("Opravneni", player.UserIDString, Name));
                    return;
                }
                if (args.Length == 1)
                {
                    if (args[0] == pass)
                    {
                        ConsoleSystem.Run.Server.Normal("stop");
                    } else
                    {
                        SendReply(player, Lang("BadPass", player.UserIDString, Name));
                    }
                       
                } else
                {
                    SendReply(player, Lang("BadPass", player.UserIDString, Name));
                }
            }
     
  2. Try
    Code:
    ConsoleSystem.Run(ConsoleSystem.Option.Unrestricted, "stop");
     
  3. Yes now it's work, thanks. Can you write me why not work wrong line and how work new script line, please?
     
  4. Wulf

    Wulf Community Admin

    Your original line didn't work because Rust changed that code months ago to be what the new line is.