Cant set any kind of permissions on skins

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>:0
Everything 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": [
        ********
      ]
    }
  ],​

Let me add, I have tried to purge the cache. Both for everything, and only the metal.facemask.

This commands:
skin purgecache metal.facemask
skin purgecache


And the plugin works fine if I dont use permissions. Just blank instead.

if you reload the plugin after adding the skin, does it work?

No.

And if I add anything manually with groups in the config file, it just failes and load the default one.

Did you grant the permission? Also, please prefix them with the skins. prefix

Im having this same issue

{
  "Commands": [
    "skin",
    "skins"
  ],
  "Skins": [
    {
      "Item Shortname": "rifle.ak",
      "Permission": "",
      "Skins": [
        958707939
      ]
    },
    {
      "Item Shortname": "rifle.ak",
      "Permission": "",
      "Skins": [
        1533789603
      ]
    },
    {
      "Item Shortname": "shoes.boots",
      "Permission": "skins.test",
      "Skins": [
        613481881
      ]
    }
  ],
  "Container Panel Name": "generic",
  "Container Capacity": 36,
  "UI": {
    "Background Color": "0.18 0.28 0.36",
    "Background Anchors": {
      "Anchor Min X": "1.0",
      "Anchor Min Y": "1.0",
      "Anchor Max X": "1.0",
      "Anchor Max Y": "1.0"
    },
    "Background Offsets": {
      "Offset Min X": "-300",
      "Offset Min Y": "-100",
      "Offset Max X": "0",
      "Offset Max Y": "0"
    },
    "Left Button Text": "<size=36><</size>",
    "Left Button Color": "0.11 0.51 0.83",
    "Left Button Anchors": {
      "Anchor Min X": "0.025",
      "Anchor Min Y": "0.05",
      "Anchor Max X": "0.325",
      "Anchor Max Y": "0.95"
    },
    "Center Button Text": "<size=36>Page: {page}</size>",
    "Center Button Color": "0.11 0.51 0.83",
    "Center Button Anchors": {
      "Anchor Min X": "0.350",
      "Anchor Min Y": "0.05",
      "Anchor Max X": "0.650",
      "Anchor Max Y": "0.95"
    },
    "Right Button Text": "<size=36>></size>",
    "Right Button Color": "0.11 0.51 0.83",
    "Right Button Anchors": {
      "Anchor Min X": "0.675",
      "Anchor Min Y": "0.05",
      "Anchor Max X": "0.975",
      "Anchor Max Y": "0.95"
    }
  }
}​


Merged post

as soon as i add that skins.test to the config it reverts back to using the default config