1. Code:
                Config["RespawnMessage"] = new List<string>
                {
                    "Hey, <color=#cd422b>try not to die</color> this time!",
                    "Line 2",
                    "Line 3"
                };
    
    That is part of my config file, so I'd do
    Code:
    SendReply(???);
    Reference: Unity - Lists and Dictionaries
     
    Last edited by a moderator: Nov 16, 2016
  2. I would set it as an object then do something like this to access it easier.
    Code:
    List<object> RespawnMessage = (List<object>)Config["RespawnMessage"];
    
     
  3. Code:
    SendReply(List<object> RespawnMessage);
    I'm still confused what part to send to the player.
    [DOUBLEPOST=1479301750][/DOUBLEPOST] upload_2016-11-16_8-9-8.png
     
  4. Kinda look around here if you are still having a few issues: Using arrays in Config C# | Oxide
     
  5. SendReply(RespawnMessage);
    Since you are calling it as a List of type <object> make sure that it is also that in your config.
     
  6. You probably want to do something like this, i suppose?
    Code:
                var msgList = (List<string>) Config["RespawnMessage"];
    ....
                SendReply(player, msgList[Random.Range(msgList.Count)]);
     
  7. Thanks for the replies, I'll test them and mark this thread appropriately when I get my internet turned back on.