ConnectMessages

Moved

Total Downloads: 5,242 - First Release: Oct 20, 2016 - Last Update: Nov 10, 2017

5/5, 19 likes
  1. How to fix the problem of question marks, I use the game in French and when a user logs in is marked

    playername s'est connect(e).
     
  2. Change the Lang file, I'm assuming there was some type of UTF-8 there.
     
  3. I have the following in my language file:
    "DisconnectMessage": "<color=lightblue>{0} has disconnected.",

    When someone leaves it interprets <color=lightblue> as text instead of code.
     
  4. Wulf

    Wulf Community Admin

    Make sure to add the closing </color> tag.
     
  5. OMG thanks :) Here's what I had.

    {
    "ConnectMessage": "<color=lightblue>{0}</color> has connected.",
    "ConnectMessageCountry": "<color=lightblue>{0}</color> has connected from <color=darkgreen>{1}</color>.",
    "DisconnectMessage": "<color=lightblue>{0} has disconnected.",
    "DisconnectMessageReason": "<color=lightblue>{0} has disconnected. (<color=darkgreen>{1}</color>)"
    }
     
  6. Can you add to the connect message? For instance

    {
    "ConnectMessage": "{0} has connected. Welcome to the server, please read the rules at blank",
    "ConnectMessageCountry": "{0} has connected from {1}.",
    "DisconnectMessage": "{0} has disconnected. Rules Are Located at blank",
    "DisconnectMessageReason": "{0} has disconnected. ({1})"
    }

    Thanks in advance!
     
  7. Wulf

    Wulf Community Admin

    Sure, what's the issue?
     
  8. When I change it, it doesn't say the full message. Do I need to do a server reset?
     
  9. Wulf

    Wulf Community Admin

    Did you reload the plugin after modifying it?
     
  10. Since the last update, any time somebody teleports using nteleportation I am seeing
    (14:10:20) | playername[steamid] has entered the game
    in the rustadmin console
     
  11. Wulf

    Wulf Community Admin

    That is most likely not from this.
     
  12. okay. maybe rustadmin. not a big deal
     
  13. @Spicy
    I just got this error showed up from your plugin
    Code:
    Failed to call hook 'OnUserDisconnected' on plugin 'ConnectMessages v1.1.8' (FormatException: Input string was not in a correct format.)
      at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0
      at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Hurtworld.Libraries.Covalence.HurtworldPlayer.Message (System.String message, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ConnectMessages.Broadcast (System.String key, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ConnectMessages.OnUserDisconnected (IPlayer player, System.String reason) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ConnectMessages.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  14. ConnectMessages | Oxide
     
  15. (16:15:53) | [ConnectMessages] WebRequest to http://ip-api.com/json/ failed, sending connect message without the country.

    (16:15:53) | Web request callback raised an exception (JsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0.)

    FIX?
     
  16. i want to add colors too but i cant seem to find a file for it all i find is this :/

    {
    "Settings": {
    "ShowConnectMessage": true,
    "ShowConnectCountry": true,
    "ShowDisconnectMessage": true,
    "ShowDisconnectReason": false,
    "ShowAdminMessages": true
    }
    }
     
  17. Wulf

    Wulf Community Admin

    Look under the oxide/lang folder.
     
  18. how i can translate to russian language?
     
  19. Wulf

    Wulf Community Admin

    Make a copy of the en file under oxide/lang/ru and then translate it. You can use it by selecting the language with the '/lang ru' command
     
  20. Thank you, it turned out. Does this command change the language only for me? Or for the whole server?