I always keep the latest oxide.
I followed the instructions for creating custom autokits, and went through this once before. I gave up and just used the autokit method.
So I am trying again and followed everything. The only weird thing is when I give the permission, it returns the "granted" message. But if I do it again it doesn't give the "already has permission" message.
I did both: oxide.grant user 76561197976613740 kits.Autosniv
and the o.grant way.
Both give granted but never already granted and no kit after killing myself many times.
I got 2 hidden kits under "custom autokits", one auth level 2 and another auth level 1.
What am I doing wrong that would happen if I followed directions perfectly?
I get a console warning: Missing plugin name prefix 'kits.' for permission 'null' (by plugin 'Kits') in console when I load the plugin.
Of course that is how it is in the .json that it put in when following the directions.
Merged post
EDIT: I got rid of the warning above by making all npc only kits with null permissions NPC ONLY and HIDDEN, so it was not related to why Custom Autokits does nothing.
I do notice that there seems to be no OnPlayerRespawned(BasePlayer player) for Custom Autokits, like there is at line 180-202 for autokit. How is it supposed to work when plugin doesn't have an "else if" for Custom Autokits?
I'm not a coder, but It seems the plugin creates the config for autokit, but we need to copy paste from your instructions this:
"Custom AutoKits": {
"0": "Autosniv",
"1": "Autodc"
},
Then it seems it is not even referenced on OnPlayerRespawned(BasePlayer player).
I followed the instructions for creating custom autokits, and went through this once before. I gave up and just used the autokit method.
So I am trying again and followed everything. The only weird thing is when I give the permission, it returns the "granted" message. But if I do it again it doesn't give the "already has permission" message.
I did both: oxide.grant user 76561197976613740 kits.Autosniv
and the o.grant way.
Both give granted but never already granted and no kit after killing myself many times.
I got 2 hidden kits under "custom autokits", one auth level 2 and another auth level 1.
What am I doing wrong that would happen if I followed directions perfectly?
I get a console warning: Missing plugin name prefix 'kits.' for permission 'null' (by plugin 'Kits') in console when I load the plugin.
Of course that is how it is in the .json that it put in when following the directions.
Merged post
EDIT: I got rid of the warning above by making all npc only kits with null permissions NPC ONLY and HIDDEN, so it was not related to why Custom Autokits does nothing.
I do notice that there seems to be no OnPlayerRespawned(BasePlayer player) for Custom Autokits, like there is at line 180-202 for autokit. How is it supposed to work when plugin doesn't have an "else if" for Custom Autokits?
I'm not a coder, but It seems the plugin creates the config for autokit, but we need to copy paste from your instructions this:
"Custom AutoKits": {
"0": "Autosniv",
"1": "Autodc"
},
Then it seems it is not even referenced on OnPlayerRespawned(BasePlayer player).