1. my first mod has been reviewed and i was told that
    Code:
    It is missing the player ID string with the Lang API usage; this is what makes the localization per player possible.lang.GetMessage(key, this, "playeridgoeshere")

    i am trying to add that to my code but i am a little lost now, this is my code

    Code:
    private string Lang(string key, params object[] args) => string.Format(lang.GetMessage(key, this), args);        private new void LoadDefaultMessages()
            {
                //English
                lang.RegisterMessages(new Dictionary<string, string>
                {
                    ["ConfigChanged"] = "{0} set to {1}"
                }, this);
            }

    and this is how i call the lang to send a message to the player
    Code:
    SendReply(player, Lang("ConfigChanged"), variableName, variableValue);
    i feel like it is something really simple but i dont understand it :c
     
  2. Code:
    SendReply(player, Lang("ConfigChanged", SteamIdHere, variableName, variableValue));
     
  3. thanks for answering, if i use that code isnt the steamid going to be used as the first argument? like if it was {0}?
     
  4. Wulf

    Wulf Community Admin

    You'd need to update your Lang(string key, params object[] args) method to include the ID, else use the lang.GetMessage directly.
     
  5. so something like this?
    Code:
    lang.GetMessage("ConfigChanged", this, player.userID.ToString()), args
     
  6. Wulf

    Wulf Community Admin

    You can use player.UserIDString, but yes.
     
  7. Thank you!