Im trying to get the permissions working, but I'm not getting anywhere. I thought it may be something with our server, so I waited to investigate until this wipe so that I could delete the whole server and start over, and that didnt help at all.
When I add skins without any permissions manually in the json, or via command, everything works fine.
But as soon as I try to add with permissions, it stops working.
I tried both of this commands:
skin add metal.facemask 2668165249 admin
skin add metal.facemask 2668165249 "admin"
And both of them results in the same thing in the console:
07/02 21:25:23 | Missing plugin name prefix 'skins.' for permission 'admin' (by plugin 'Skins')07/02 21:25:29 | Failed to call hook 'OnItemAddedToContainer' on plugin 'Skins v2.2.2' (NullReferenceException: Object reference not set to an instance of an object)
at Oxide.Plugins.Skins+ContainerController.DrawUI (System.Int32 page) [0x0003f] in <a2431982adf14ffb95d7bfd6f5daea19>:0
at Oxide.Plugins.Skins+ContainerController.UpdateContent (System.Int32 page) [0x00205] in <a2431982adf14ffb95d7bfd6f5daea19>:0
at Oxide.Plugins.Skins.OnItemAddedToContainer (ItemContainer itemContainer, Item item) [0x000a2] in <a2431982adf14ffb95d7bfd6f5daea19>:0
at Oxide.Plugins.Skins.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002f3] in <a2431982adf14ffb95d7bfd6f5daea19>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0Everything looks correct in the json config, all available permissions for the plugin are set, so I dont really know what to try next.This is how it looks in the json file:
"Skins": [
{
"Item Shortname": "metal.facemask",
"Permission": "",
"Skins": [
*********,
*********,
*********
]
},
{
"Item Shortname": "metal.facemask",
"Permission": "admin",
"Skins": [
********
]
}
],