0
using System;
using System.Collections.Generic;
using UnityEngine;
using Oxide.Core.Libraries.Covalence;
namespace Oxide.Plugins
{
    [Info("AutoNoClip", "Test", "1.0.20")]

    class AutoNoClip : RustPlugin
    {
        void OnUserConnected(IPlayer player)
        {
        player.Command("noclip");
        player.Command("menu");
        }
    }
}

This is my first plugin for the Rust video game and I'm getting this error in console

Shepmaster
  • 388,571
  • 95
  • 1,107
  • 1,366
Tom Hutchison
  • 73
  • 1
  • 1
  • 6
  • 1
    Sorry John, it suggested the tag so I misclicked – Tom Hutchison Jan 12 '21 at 01:39
  • 2
    Does this code by itself actually demonstrate the issue? I don't see how you're getting that error from this code. – ProgrammingLlama Jan 12 '21 at 01:40
  • 4
    It's highly recommended that you provide the code where the collection is changed causing the exception. None of the code provided modifies a collection so it's not possible to solve your problem. – Erik Philips Jan 12 '21 at 01:42
  • I think it's a duplication of a foreach statement. I think I've stupidly posted this question when it's not the cause. It's in another plugin – Tom Hutchison Jan 12 '21 at 01:51

0 Answers0