BetterChat

Moved

Total Downloads: 26,200 - First Release: Apr 21, 2015 - Last Update: Jan 12, 2018

4.9898/5, 98 likes
  1. Dont think that will work with this plugin it is easy enough to put the hex code in but not sure if the script allows it so best if the coder answers
     
  2. Code:
    (21:25:45) | [Oxide] 21:25 [Error] Failed to call hook 'OnUserChat' on plugin 'BetterChat v4.2.12' (NullReferenceException: Object reference not set to an instance of an object)
    (21:25:45) | [Oxide] 21:25 [Debug]   at Oxide.Plugins.BetterChat+Group.GetGroups (System.String SteamID, Sorting sorting) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat+Group.GetPrimaryGroup (System.String steamID) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat+Group.Format (System.String id, System.String message, Boolean console) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat+Group.Format (IPlayer player, System.String message, Boolean console) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat.OnUserChat (IPlayer player, System.String message) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.BetterChat.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    I found this on logs, not sure about it, just two times for different people in the same group.
     
  3. ''[Oxide] 15:23 [Error] Failed to run command 'chat' on plugin 'BetterChat v4.2.12' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 15:23 [Debug] at Oxide.Plugins.BetterChat+Group.AddToGroup (IPlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.BetterChat.cmdBetterChat (IPlayer player, System.String cmd, System.String[] args) [0x00000] in <filename unknown>:0
    at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0'' Can someone help?
     
  4. What exactly did you type?
    [DOUBLEPOST=1479566294][/DOUBLEPOST]
    Could you maybe per PM provide me more detailed info about your groups and those two players please?
    [DOUBLEPOST=1479566456][/DOUBLEPOST]
    You can't do an actual gradient in chat. What you can do though is slightly differ the color for each char in the title, by using color tags: <color=green>A</color><color=red>B</color>
     
  5. Hi,

    I'm using RustAdmin but in the Chat Window i'm only getting the admin console messages, not from any user. This is the regexp i'm using:

    ^\[Oxide\]\s[0-9]{2}:[0-9]{2}\s\[Info\]\s\[Better\sChat\]\s(?<sender>.*?):\s(?<message>.*)

    And this is a sample line:

    (17:40:25) | [Oxide] 17:40 [Info] [Better Chat] [Player] Name: test
     
  6. Groups.json ;
    "Chat": "<color=green>{Title}</color> <color=red>{Name}</color>: {Message}" How to do?
     
  7. I added this in to my server and now i have [player][player] and every time i type in chat it will open my innovatory.
     
  8. upload your groups file
     
  9. Code:
    [
      {
        "GroupName": "default",
        "Priority": 1,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": false,
          "Size": 15,
          "Color": "#9EC326",
          "Text": "[Player]",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 15,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 15,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "{Title} {Name}: {Message}"
        }
      },
      {
        "GroupName": "admin",
        "Priority": 0,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": false,
          "Size": 15,
          "Color": "red",
          "Text": "[Admin]",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 15,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 15,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "{Title} {Name}: {Message}"
        }
      }
    ]
     
  10. "HideIfNotHighestPriority": true,
    And you cant have two player tags when you only have one there
     
  11. Thanks
     
  12. Anyway you could help me with this plug in on my hurtworld server i really love it and it make my chat look way better but there is one problem it will freeze after typing fast in chat for a good 2 min then works again i tried everything to make it works and still nothing pls help
     
  13. Sadly that seems to be a specific hurtworld issue. I have not been able to find out how to prevent this with BetterChat, I am sorry.
     
  14. Hi Laser Hydra
    Just wondering if there is a way to stop caps being used via your plugins so when somebody says
    HELLO ALL it would change to hello all,
     
  15. have you tried CapsNoCaps for Rust | Oxide ?
     
  16. Thanks Pur 3x but the plugin no longer works
     
  17. I think someone can fix it, but yeah hopefully they do, because i know how it feels when people keep using caps.
     
  18. Hi there, im having an issue with the plugin atm whereby if i give my players the member rank, it gives them the tag and permissions for about a minute or 2 before they are automatically removed of the rank and put into the default group, below is what my groups file looks like. Please help im out of ideas on how to fix this myself.
    Code:
    [
      {
        "GroupName": "default",
        "Priority": 0,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": true,
          "Size": 15,
          "Color": "#0099ff",
          "Text": "Rustled UK",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 15,
          "Color": "#9EC326",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 15,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "{Title} {Name}: {Message}"
        }
      },
      {
        "GroupName": "Admin",
        "Priority": 4,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": false,
          "Size": 15,
          "Color": "#6600cc",
          "Text": "Admin",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 15,
          "Color": "#0099ff",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 15,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "{Title} {Name}: {Message}"
        }
      },
      {
        "GroupName": "Member",
        "Priority": 1,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": true,
          "Size": 15,
          "Color": "#9EC326",
          "Text": "Member",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 15,
          "Color": "green",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 15,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "{Title} {Name}: {Message}"
        }
      },
      {
        "GroupName": "VIP",
        "Priority": 2,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": true,
          "Size": 15,
          "Color": "red",
          "Text": "VIP",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 15,
          "Color": "orange",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 15,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "{Title} {Name}: {Message}"
        }
      },
      {
        "GroupName": "VIP+",
        "Priority": 3,
        "Title": {
          "Hidden": false,
          "HideIfNotHighestPriority": true,
          "Size": 15,
          "Color": "red",
          "Text": "VIP PRO",
          "InheritSize": false,
          "InheritColor": false
        },
        "PlayerName": {
          "Size": 15,
          "Color": "orange",
          "ClanTagFormat": "[{Clan}] {Name}"
        },
        "Message": {
          "Size": 15,
          "Color": "white"
        },
        "Formatting": {
          "Console": "{Title} {Name}: {Message}",
          "Chat": "{Title} {Name}: {Message}"
        }
      }
    ]
     
  19. you priorities are wrong, admin should be 0 then work your way through the groups with the next most important group being 1. i dont know if that would cause the issue you have with them only being in the group for a few minutes.
    looking at your file im guessing it would be
    admin = 0
    vip+ = 1
    vip = 2
    member = 3
    default = 4
     
  20. All fixed
     

    Attached Files: