@Wulf cuz u also know something about that plugin. You may help me out.
On the permission section it says it's nil how do I activate it true did not work.
I did oxide.grant user CHR VIP and got the color yellow in but it does not show it.
BetterChat
Moved
Total Downloads: 26,139 - First Release: Apr 21, 2015 - Last Update: Jan 12, 2018
- 4.9898/5, 98 likes
-
Wulf Community Admin
Which version of the plugin are you using? You'd don't need to grant a user any permission with the last one I posted, as it does group checking. If you want to add a user to the VIP group, use oxide.usergroup add CHR vip. -
i did use the last he uploaded and i guess it is urs ... i try it with the oxide.usergroup then i will tell u if it worked.
whats about the Nil? @Wulf
Code:{ "AuthlevelColors": { "AuthLevel0": "#58ACFA", "AuthLevel1": "#ACFA58", "AuthLevel2": "#ACFA58" }, "PermissionColors": { "moderator": "#ACFA58", "owner": "#ACFA58", "player": "#58ACFA", "vip": "yellow" }, "PermissionsEnabled": "nil" } -
Didnt update yet Wulf XD My fault ^^
-
Wulf Community Admin
Yeah, that'll only work with the one in my previous post. The uploaded one still needs the permissions assigned to users.
Ex. oxide.grant user CHR color_vip -
LaserHydra updated Name Colors with a new update entry:
more improvements and stuff @Wulf
-
Ahhhhhhhhhhhhh i will smasch my Keyboard into the Monitor xD AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
-
Wulf Community Admin
PS. All those config options set to nil were to automatically cleanup configs for users so no deleting would be needed, but you commented them out.
Don't set self.Config.Colors to nil though. That was actually a typo from a batch replace. It should be self.Config.PermissionColors = nil. -
U guys make me crazy with that codes oO
Wulf where do i find the permission tutorial about oxide? Ty for all informations as alaways, btw isnt today fixingday by rust? So much Errors in console. Or dont we see one today. Ty @both -
Wulf Community Admin
Here's a good example: http://oxidemod.org/plugins/chat-handler.707/update?update=4089.
For the errors, all I can say is read the logs and update plugins. No errors here. -
Ty thats good and now i know how it works.
But the shit already started
Code:[Oxide] 10:38 PM [Error] Failed to call hook 'OnPlayerConnected' on plugin 'Name Colors' File: namecolors.lua Line: 43 Argument cannot be null. Parameter name: key: at System.Collections.Generic.Dictionary`2[System.String,Oxide.Core.Libraries.UserData].TryGetValue (System.String key, Oxide.Core.Libraries.UserData& value) [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Permission.GetUserData (System.String userid) [0x00000] in <filename unknown>:0 at Oxide.Core.Libraries.Permission.GetUserGroups (System.String userid) [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 91.157.80.170:53558/76561198046306038/SC SOJO joined [windows/76561198046306038]
-
Wulf Community Admin
Typos happen. I must not have tested the previous code I posted in-game.Attached Files:
-
-
I dont know i dont get it to work... is it the plugin is it me i really dont know...
Are you sure ist working cuz it s blowing my mind. This cant be that hard! Just simple commands.
1) Deleted old .lua and .json
2) Changed file to this
3) Tried to create the GROUP VIP with this command oxide.group add VIPCode:{ "Colors": { "Moderator": "#ACFA58", "Owner": "#ACFA58", "Player": "#58ACFA", "VIP": "yellow" } }
4) Group already exsits
5) So i assaign Privilegs to the Group with oxide.grant group VIP VIP
6) added myself into the Group with oxide.usergroup add CHR VIP
7) worked but not colord as VIP
Im so sorry for this... but i dont see my fault :/ -
Its because the plugin checks for group "vip", you used "VIP".
-
Wulf Community Admin
I guess I gave a bad example... heh. "vip" would be right. -
Did not work anyways... im done with it. Still ty...
-
Wulf Community Admin
There seem to be a few issues with the new method, so I'd try an older version for now or wait till it's all worked out.
-
^^ ?
-
Wulf Community Admin
Back to the old tested method. The previous one I posted wasn't actually tested in-game. It was in hopes to avoid OnPlayerChat usage.
P.S. Always test before releasing, no matter who gives you a "fix" for your plugin.
Attached Files:
-
-
also why did you change from Permission checking to group checking? So youre not checking Permissions anymore, but groups.
