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?
BetterChat
Moved
Total Downloads: 26,142 - First Release: Apr 21, 2015 - Last Update: Jan 12, 2018
- 4.9898/5, 98 likes
-
-
(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 -
-
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 -
So lets take this permission group from the config :
Code:"mod":{ "NameColor":"lime", "Permission":"color_mod", "Prefix":"[Mod]", "PrefixColor":"yellow", "TextColor":"white", "Rank":3 },
Code:"Permission":"color_mod",
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
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
Code:oxide.usergroup add PaiN mod -- Now i have the prefix and the other stuff
-
[DOUBLEPOST=1434184455][/DOUBLEPOST]
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. -
-
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
(This error occurs any time someone chats)Last edited by a moderator: Jun 14, 2015 -
-
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
Last edited by a moderator: Jun 14, 2015 -
-
-
guys how can i delete oxide groups like mod or rename them?
-
-
and how can i remove permissions ?
because i added some i dont want -
oxide.revoke user SteamID PERM -
how can i revoke peoples groups ?
-
Wulf Community Admin
-
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