hey been having trouble with players able to Redeem NPC kits that are hidden and set to NPConly True since the V4.x.x update. Last month they all showed up in the UI and had to do what was in this post so they wouldn't. Now palyers have found out you that you can go /kit KitName to redeem any kit.
Players can still redeem hidden NPC kits via /kit KitNameSolved
They will not be able to do it if you create a permission for that (or all) NPConly kits, You need only to create the permission "kits.NPCONLY" for each of the kits , they will not be able to see the kits in the gui and will not be able to redeem them if they "guess" the name as they will get the "you do not have the required permission to access this kit" (just tried it as a player)
After I had created all my NPC kits i unloaded kits plugin the edited the first NPC kit by adding the "kits.npconly" permission to it then copied that permission and added it to every npconly kit , then saved the data file and reloaded the plugin, i got a "multiple npconly permissions" message in console and the usually imagelibrary "removed images" message but everything is still running smoothly.
yea i figured out a way around it i just gave the kits auth level 2 and it still let the npc use them. kinda stupid though as he didnt say anything about having to do all that with the conversion and it doesnt say hardly anything about npc and how to make them only be able to get the kits like it used too. I thought thats because it should have converted over but it did a half ass job and let everyone see the kits thats how they knew the names to them. "Kits v4.x.x has changed the data structure used for storing kits, however you can convert your old Kits data to the new system with a simple console command"
Rustyspoon342yea i figured out a way around it i just gave the kits auth level 2 and it still let the npc use them. kinda stupid though as he didnt say anything about having to do all that with the conversion and it doesnt say hardly anything about npc and how to make them only be able to get the kits like it used too. I thought thats because it should have converted over but it did a half ass job and let everyone see the kits thats how they knew the names to them. "Kits v4.x.x has changed the data structure used for storing kits, however you can convert your old Kits data to the new system with a simple console command"
once they could be seen in the gui it was obvious that the best way to make them unavailable was to make them hidden and give them a permission = no problem