ConnectMessages

Provides connect and disconnect messages.

Total Downloads: 2,200 - First Release: Oct 20, 2016 - Last Update: Jan 26, 2017

5/5, 12 likes
  1. Lynton69

    Lynton69 Naked Wanderer

    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. Kappasaurus

    Kappasaurus Airdrop Stalker Plugin Developer

    Change the Lang file, I'm assuming there was some type of UTF-8 there.
     
    Spicy likes this.
  3. Tunnleram

    Tunnleram Wood Hoarder

    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 Community Admin Oxide Developer

    Make sure to add the closing </color> tag.
     
    Tunnleram likes this.
  5. Tunnleram

    Tunnleram Wood Hoarder

    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. Jizarrd

    Jizarrd Naked Wanderer

    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 Community Admin Oxide Developer

    Sure, what's the issue?
     
  8. Jizarrd

    Jizarrd Naked Wanderer

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

    Wulf Community Admin Community Admin Oxide Developer

    Did you reload the plugin after modifying it?
     
  10. Findles

    Findles Shack Builder

    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 Community Admin Oxide Developer

    That is most likely not from this.
     
  12. Findles

    Findles Shack Builder

    okay. maybe rustadmin. not a big deal
     
  13. TruxDeadnitro

    TruxDeadnitro Wood Hoarder

    @Spicy
    I just got this error showed up from your plugin
    Code (Text):
    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. Spicy

    Spicy Shack Builder Plugin Developer

    ConnectMessages | Oxide
     
  15. JAJEDE

    JAJEDE Scavenger

    (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. ViktorFr

    ViktorFr Scavenger

    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 Community Admin Oxide Developer

    Look under the oxide/lang folder.
     
    ViktorFr likes this.
  18. Paul70

    Paul70 Naked Wanderer

    how i can translate to russian language?
     
  19. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    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. Paul70

    Paul70 Naked Wanderer

    Thank you, it turned out. Does this command change the language only for me? Or for the whole server?