BetterChat

Moved

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

4.9898/5, 98 likes
  1. there is not longer a rank in the config, i have a player who is also vip, shows hes player and vip in oxide group data, how od i get the vip to take priority?
    [DOUBLEPOST=1434137417][/DOUBLEPOST]
    i see now someone is having the same problem, whats strange is i have no "Rank" in my config... setting vip as lower rank should do it right?
     
  2. Are you sure ? i just opened the plugin and there is a configuration for Rank "self.Config.mod.Rank = self.Config.mod.Rank or 2"
     
  3. (21:39:02) | [Oxide] 6:26 AM [Warning] CallHook 'OnPlayerChat' on plugin 'Better Chatname' took: 3976ms

    (21:39:02) | [Oxide] 6:26 AM [Warning] CallHook 'OnPlayerChat' on plugin 'Better Chatname' took average: 339ms
     
  4. thats just a normal oxide warning mainly can happen with very plugin and it is not a problem. Mainly caused by server lag
     
  5. So after a while I figured out how to add a group called rusgreeter and apply it to my friend Roonoc. Next, I got the color for it. Then I wanted to give it the prefix "Russian Greeter" before his name and I did something very wrong.
    I wrote

    oxide.grant group rusgreeter prefix "Russian Greeter"

    and now it throws errors every time he types. If I could get help quickly it would be much appreciated. Is there a way to easily reverse this?

    EDIT: I would just like to figure out how to get the prefix to work. I have followed your instructions very seriously for hours as closely as I possibly can. I even created a new VIP tag and did it exactly how you did, and put in the code exactly the same way on oxide (except for the username) and it still does not work. I can change the color, but not the prefix on people's names.
     
    Last edited by a moderator: Jun 13, 2015
  6. I will explain you right now.
    So lets take this permission group from the config :
    Code:
    "mod":{
       "NameColor":"lime",
       "Permission":"color_mod",
       "Prefix":"[Mod]",
       "PrefixColor":"yellow",
       "TextColor":"white",
       "Rank":3
    },
    
    as you can see there is
    Code:
      "Permission":"color_mod",
    
    that's the permission for the whole group that i showed you above.
    So this permission cares for the prefix, prefix color, NameColor and text.
    I will give you an example with my name.
    1. I will make a group to give multiple permission from other plugins too .. bcs i dont want to make a mess.
    Code:
    oxide.group add mod
    
    2. Lets give some permissions to this group
    Code:
    oxide.grant group mod canmute
    oxide.grant group mod canban
    oxide.grant group mod color_mod ----- This is what you need for this plugin
    
    3. Now lets assign to me this group.
    Code:
    oxide.usergroup add PaiN mod -- Now i have the prefix and the other stuff
    
    If you still cant figure out how to do this.. then check this http://oxidemod.org/threads/using-oxides-permission-system.8296/
     
  7. Thanks. Also the prefix @elninost0rm is not.set by the command you used. You simply set it in the config.
    [DOUBLEPOST=1434184455][/DOUBLEPOST]
    1. Be sure you have the latest version of the plugin installed.
    2. Delete the old config and reload the plugin to create a new one.
    [DOUBLEPOST=1434184642][/DOUBLEPOST]Oh and @PaiN the oxide group name does not need to be the same as the formatting group. Means the groupnames dont matter.
     
  8. I know only the permission counts i just did it for better example .
     
  9. Code:
    [Oxide] 7:39 PM [Error] Failed to call hook 'OnPlayerChat' on plugin 'Better Chatname'
    File: betterchatname.lua Line: 89 Object reference not set to an instance of an object:
      at Oxide.Core.Libraries.Permission.GroupExists (System.String groupname) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.GroupHasPermission (System.String groupname, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission+<GroupsHavePermission>c__AnonStorey0.<>m__0 (System.String group) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.Any[String] (IEnumerable`1 source, System.Func`2 predicate) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.GroupsHavePermission (System.Collections.Generic.HashSet`1 groups, System.String perm) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.UserHasPermission (System.String userid, System.String perm) [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
    Was working, Nothing on my server was changed. I have installed the plugin fresh (redownload) and deleted my old conffig. Any ideas?
    (This error occurs any time someone chats)
     
    Last edited by a moderator: Jun 14, 2015
  10. Sure nothing got changed in the config? Try to delete all files and redownload the plugin and put it in again.
     
  11. Yes. I once again downloaded a fresh copy and installed it, deleting the old config beforehand. Just to make sure im not crazy ;)
    EDIT
    Taking this one level further
    Code:
    [Oxide] 10:07 PM [Info] Loaded plugin Better Chatname v2.1.8 by LaserHydra
    [Oxide] 10:07 PM [Error] Failed to initialize plugin betterchatname
    File: betterchatname.lua Line: 45 Object reference not set to an instance of an object:
      at Oxide.Core.Libraries.Permission.GroupExists (System.String groupname) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.GrantGroupPermission (System.String groupname, System.String perm, Oxide.Core.Plugins.Plugin owner) [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
    Is what happens upon loading
     
    Last edited by a moderator: Jun 14, 2015
  12. I think your permission files are broken.. oxide/data/oxide_groups.json, oxide_users.json
     
  13. Indeed
     
  14. guys how can i delete oxide groups like mod or rename them?
     
  15. you can delete groups using oxide.group remove GROUP but I don't know if you are able to delete the default groups (player, moderator, admin)
     
  16. and how can i remove permissions ?
    because i added some i dont want :D
     
  17. oxide.revoke group GROUP PERM
    oxide.revoke user SteamID PERM
     
  18. how can i revoke peoples groups ?
     
  19. Wulf

    Wulf Community Admin

    oxide.usergroup remove username group
     
  20. I cant seem to get this to work. i have a friend whos a mod and she wants her title to be goddess. i followed every instruction and cant get her prefix to change. here is my cfg file.
    {
    "mod": {
    "NameColor": "lime",
    "Permission": "color_mod",
    "Prefix": "[Mod]",
    "PrefixColor": "yellow",
    "Rank": 3,
    "TextColor": "white"
    },
    "owner": {
    "NameColor": "orange",
    "Permission": "color_owner",
    "Prefix": "[Owner]",
    "PrefixColor": "orange",
    "Rank": 4,
    "TextColor": "white"
    },
    "player": {
    "NameColor": "lime",
    "Permission": "color_player",
    "Prefix": "[Player]",
    "PrefixColor": "lime",
    "Rank": 1,
    "TextColor": "white"
    },
    "V": {
    "I": {
    "P": {
    "": {
    "NameColor": "cyan",
    "Permission": "color_vip",
    "Prefix": "*Goddess*",
    "PrefixColor": "blue",
    "Rank": 4,
    "TextColor": "#CEECF5"
    }
    }
    }
    }
    }
    i have loaded and reloaded it a few times as well as 2 server restarts and still no "goddess" prefix