1. Hello everyone, I am trying to figure out how to change the startup items on my modded server to my own..
    I have the startupitem.py plugin(haven't made any changes to it) and ran it once and got an error, Here is the error.
    Code:
    [Oxide] 8:13 PM [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.1'
    Traceback (most recent call last):
      File "StartupItems.py", line 40, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (KeyNotFoundException: The given key was not present in the dictionary.)
    at System.Collections.Generic.Dictionary`2<string, object>.get_Item (string) <0x001c5>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <0x000c4>
    at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, object, object>.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113>
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x000c8>
     
  2. Calytic

    Calytic Community Admin Community Mod

    That means you are trying to access an item in a collection by an index without checking if the index exists first.
     
  3. Okay so what do you recommend I should do?
     
  4. Calytic

    Calytic Community Admin Community Mod

    Check if the index exists first.

    We can't tell you specifically without the code.
     
  5. It's the original startup items plugin.
     
  6. Calytic

    Calytic Community Admin Community Mod

    What is your configuration? This problem looks like a malformed configuration file. Specifically in the "Admin" section