Disallowed items not workingSolved

I've just been checking on a report I had yesterday of disallowed items being placed in backpacks, and I'm getting the same result when testing. Previously when I've tested this, any items that shouldn't be allowed in my backpack have been ejected so I know it was working a few weeks back. I removed my admin permission to Backpacks and tried adding in a rocket launcher and C4 and both went into my backpack. Is there something that has changed that I've missed in one of the updates?

This is my relevant section of the config:-

  "Item restrictions": {
    "Enabled": true,
    "Enable legacy noblacklist permission": true,
    "Feedback effect": "assets/prefabs/locks/keypad/effects/lock.code.denied.prefab",
    "Default ruleset": {
      "Allowed item categories": [
        "All"
      ],
      "Disallowed item categories": [],
      "Allowed item short names": [],
      "Disallowed item short names": [
        "sulfur",
        "sulfur.ore",
        "explosive.timed",
        "gunpowder",
        "explosives",
        "charcoal",
        "grenade.flashbang",
        "grenade.f1",
        "grenade.beancan",
        "rifle.ak",
        "rifle.bolt",
        "smg.2",
        "shotgun.double",
        "pistol.eoka",
        "flamethrower",
        "hmlmg",
        "rifle.l96",
        "rifle.lr300",
        "lmg.m249",
        "rifle.m39",
        "pistol.m92",
        "smg.mp5",
        "grenade.molotov",
        "multiplegrenadelauncher",
        "pistol.prototype17",
        "shotgun.pump",
        "pistol.python",
        "pistol.revolver",
        "rocket.launcher",
        "pistol.semiauto",
        "rifle.semiauto",
        "shotgun.spas12",
        "smg.thompson",
        "shotgun.waterpipe",
        "ammo.shotgun",
        "ammo.shotgun.fire",
        "ammo.shotgun.slug",
        "ammo.grenadelauncher.he",
        "ammo.grenadelauncher.buckshot",
        "ammo.grenadelauncher.smoke",
        "ammo.rifle",
        "ammo.rifle.explosive",
        "ammo.rifle.hv",
        "ammo.pistol.hv",
        "ammo.handmade.shell",
        "ammo.rocket.hv",
        "ammo.rifle.incendiary",
        "ammo.pistol.fire",
        "ammo.rocket.fire",
        "ammo.rocket.mlrs",
        "ammo.pistol",
        "ammo.rocket.basic",
        "ammo.rocket.sam",
        "ammo.rocket.smoke",
        "submarine.torpedo.straight"
      ],
      "Allowed skin IDs": [],
      "Disallowed skin IDs": []
    },​

Thanks. 🙂

Do you have the "backpacks.noblacklist" permission granted? If so, it will supersede your assigned ruleset.

No. I only have backpacks.use for the default group, then permissions for the various vip backpack sizes, and backpacks.keepondeath for vip+++ and that's about it. Like I said it was working and all I've done recently is apply the various updates so I don't know how long it's been like this. I only found out because 2 players got into an argument and one of them reported that they could put the items I've listed into their backpacks again. My first thought was that I'd messed something up, but it all seems to be okay and that's why I'm here.

Perms for default group:-

hfR7X8gnQzTCTFs.jpg

Perms for the vip+++ group. Other vip groups are only perms for backpack sizes.

Ud2oKPOqdaQzF09.jpg


In the meantime, here is my full config. I should have pasted this originally. 🤦

Thanks.

{
  "Backpack size": {
    "Default size": 6,
    "Max size per page": 48,
    "Enable legacy backpacks.use.1-8 row permissions": true,
    "Permission sizes": [
      6,
      12,
      18,
      24,
      30,
      36,
      42,
      48
    ]
  },
  "Drop on Death (true/false)": true,
  "Erase on Death (true/false)": false,
  "Minimum Despawn Time (Seconds)": 300.0,
  "GUI Button": {
    "Enabled": true,
    "Enabled by default (for players with permission)": true,
    "Skin Id": 0,
    "Image": "https://i.imgur.com/7L1uDrs.png",
    "Background Color": "0.969 0.922 0.882 0.035",
    "GUI Button Position": {
      "Anchors Min": "0.5 0.0",
      "Anchors Max": "0.5 0.0",
      "Offsets Min": "-265 18",
      "Offsets Max": "-205 78"
    }
  },
  "Container UI": {
    "Show page buttons on container bar": false
  },
  "Softcore": {
    "Reclaim Fraction": 0.5
  },
  "Item restrictions": {
    "Enabled": true,
    "Enable legacy noblacklist permission": true,
    "Feedback effect": "assets/prefabs/locks/keypad/effects/lock.code.denied.prefab",
    "Default ruleset": {
      "Allowed item categories": [
        "All"
      ],
      "Disallowed item categories": [],
      "Allowed item short names": [],
      "Disallowed item short names": [
        "sulfur",
        "sulfur.ore",
        "explosive.timed",
        "gunpowder",
        "explosives",
        "charcoal",
        "grenade.flashbang",
        "grenade.f1",
        "grenade.beancan",
        "rifle.ak",
        "rifle.bolt",
        "smg.2",
        "shotgun.double",
        "pistol.eoka",
        "flamethrower",
        "hmlmg",
        "rifle.l96",
        "rifle.lr300",
        "lmg.m249",
        "rifle.m39",
        "pistol.m92",
        "smg.mp5",
        "grenade.molotov",
        "multiplegrenadelauncher",
        "pistol.prototype17",
        "shotgun.pump",
        "pistol.python",
        "pistol.revolver",
        "rocket.launcher",
        "pistol.semiauto",
        "rifle.semiauto",
        "shotgun.spas12",
        "smg.thompson",
        "shotgun.waterpipe",
        "ammo.shotgun",
        "ammo.shotgun.fire",
        "ammo.shotgun.slug",
        "ammo.grenadelauncher.he",
        "ammo.grenadelauncher.buckshot",
        "ammo.grenadelauncher.smoke",
        "ammo.rifle",
        "ammo.rifle.explosive",
        "ammo.rifle.hv",
        "ammo.pistol.hv",
        "ammo.handmade.shell",
        "ammo.rocket.hv",
        "ammo.rifle.incendiary",
        "ammo.pistol.fire",
        "ammo.rocket.fire",
        "ammo.rocket.mlrs",
        "ammo.pistol",
        "ammo.rocket.basic",
        "ammo.rocket.sam",
        "ammo.rocket.smoke",
        "submarine.torpedo.straight"
      ],
      "Allowed skin IDs": [],
      "Disallowed skin IDs": []
    },
    "Rulesets by permission": [
      {
        "Name": "allowall",
        "Allowed item categories": [
          "All"
        ],
        "Disallowed item categories": [],
        "Allowed item short names": [],
        "Disallowed item short names": [],
        "Allowed skin IDs": [],
        "Disallowed skin IDs": []
      }
    ]
  },
  "Clear on wipe": {
    "Enabled": true,
    "Enable legacy keeponwipe permission": true,
    "Default ruleset": {
      "Max slots to keep": 0,
      "Allowed item categories": [],
      "Disallowed item categories": [],
      "Allowed item short names": [],
      "Disallowed item short names": [],
      "Allowed skin IDs": [],
      "Disallowed skin IDs": []
    },
    "Rulesets by permission": [
      {
        "Name": "all",
        "Max slots to keep": -1,
        "Allowed item categories": [
          "All"
        ],
        "Disallowed item categories": [],
        "Allowed item short names": [],
        "Disallowed item short names": [],
        "Allowed skin IDs": [],
        "Disallowed skin IDs": []
      }
    ]
  }
}​

I just tested with your config and couldn't reproduce the issue. I tried moving gunpower, 556 ammo, C4 and rocket launchers into my backpack a variety of ways, including right-click, hover loot, click-and-drag, split-drag, and via gather mode, but the items were consistently denied.

Item Retriever integration only removes items from the backpack, so I doubt it's allowing items to be added.

Can you confirm you haven't granted the backpacks.restrictions.allowall permission? If granted, it would override the "Default ruleset", therefore allowing players' backpacks to accept all items.

Thank you for doing that. I updated my previous post with images of the permissions set so no, the allowall permission hasn't been set for anyone. Until this issue was raised to me, my previous experience of the backpacks was when I already had the disallowed items in my backpack and then I made the changes to the config and reloaded the plugin, then at that point when I viewed the backpack, all of the disallowed items were ejected around me. Cool!

I implemented that change on my servers on the 17th November, so that would have been version 3.8.0. Since then no-one has said to me that they could now put C4 etc into their backpack until yesterday, but then players don't often tell you these thing so it could have been like that for a while. I applied the current version 3.11.5 on the 5th April.

I've looked at the original complaint in Discord and I've now noticed (sorry) that the guy who was complaining (default group) said that he couldn't put C4 into his backpack but the vip+++ group player could. The only advantage of the vip+++ group apart from bigger backpacks is to keep their backpack on death. 😬

I have to go eat now but later I will remove that permission from the vip+++ group and see if it makes a difference. (Really I shouldn't have allowed vip+++ players on PvP to have this perm anyway so my bad. It's fine on PvE, but yeah not on PvP.)

Merged post

Ugh! The backpacks.noblacklist permission was (in my case) being inherited from another group that I'd set up, joined, and forgotten about. It would not have affected anyone else. After a lot of trial and error I found the group and removed the permission. It now doesn't let me put blacklisted items in the backpack. No wonder I was unable to get the results I was expecting and it worked fine for you. Now all working.

I am SO sorry and thank you very much for taking a look at my config. I have donated another $10 to you as a "sorry for causing you unecessary work." 🤦

Locked automatically