Feature Request

Hello!

I'm working on a custom kit menu for my server and I use the "GetKitObject" hook to get the kits, however the returned object does not contain information about the item's position in the inventory. Can you add the 'Position' field to the JObject of the kit?

And secondly, can you make a command to access the kit UI based on permission, I want to remove access to it for regular players and leave it only for admins/mods.

Thank you for your time!

 

The second one is easy , you just change the kit access word to something else and only give that permission to mods and admin

But the plugin doesn't use the permission to give access to the command, I can change the name of the command, yes, and that's what I've already done, but I also want to protect it with a permission

IF you dont give someone or a group the permission they cant use it so there is no problem. all they will get is a response saying "unknown command" . the plugin itself does not give anyone the permission only you do.

I don't understand what you mean. I checked the code and I don't see any check that would prevent players from using the command.

`

private void cmdKit(BasePlayer player, string command, string[] args)
{
if (args.Length == 0)
{
if (Configuration.UseUI)
OpenKitGrid(player);
else ReplyHelp(player);

return;
}

...

`

After this i lose interest.
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id> <permission>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.

Players can ONLY obtain a kit if they have the permission to open the kit gui and the permission required for each kit you create, If you dont grant the DEFAULT group any permission then no one except a player WITH  the permission required for a kit can obtain one , AND if you set the option "players can see kits they do not have permission for" to FALSE they cannot see any kits in the gui even if they found the replacement word for "kit"

Good luck in you endeavours , bye

Okay, but i asked about permission for using base gui command, not for trick to hide some of the kits from base gui of this plugin. Is the developer of this plugin available now? And can my requests be processed or not?