Why is /kit remove "KITNAME" not working for me? it seems that after using the command it works, but only until the server is restarted or the plugin is reloaded. Seems like I had to manually remove the kit from the kits.json data file. Any information on this, or am I just doing something wrong?
Rust-Kits
Moved
Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
So, persay I wanted to give a kit from the kits plugin Kits for Rust | Oxide | How would I do that via C# in a different plugin?
Last edited by a moderator: Mar 5, 2016 -
Have a look at kits and call whatever function you need. Off the top of my head I think it's GiveKit(BasePlayer player, string kitname)
Edit more detail
Reference the plugin
[PluginReference]
Plugin Kits
Call the function
Kits?.Call("GiveKit", new object[] {player, kitname}); -
[Oxide] 8:52 PM [Error] Failed to load plugin 'kits' (no source found)
Please explain, and yes, I do have kits.cs loaded in the correct folder.Last edited by a moderator: Mar 5, 2016 -
-
The file should be called Kits.cs
-
it is NOT called kits (5) in my server folder. The reason (5) is there is because I've been re-downloading/re-installing the kits plugin a few times to see if it may just have been the downloaded. Still, no dice. Again, in my server it is called kits.cs
Attached Files:
-
-
-
FIXED. Thanks K1lly0u
Edit: Not fixed, it loads but /kit does not work in game
[DOUBLEPOST=1457148428][/DOUBLEPOST]This is the same problem I had earlier, someone mentioned permissions but I don't believe there are permissions other than created ones for this plugin. I'm at a total loss now.
[Oxide] 9:25 PM [Info] Unloaded plugin Kits v3.1.7 by Reneb
[Oxide] 9:25 PM [Info] Loaded plugin Kits v3.1.7 by Reneb
Edit:
Fixed it. Thanks for all of the help!Last edited by a moderator: Mar 5, 2016 -
-
Ok...another issue ::sigh:: (Im such a noob at this stuff)
So, plugin is installed, it all looks good.
So, I went to add an autokit and it took however, when I re spawned it gave me nothing in inventory,not even a rock now.
(Probably because I used auth 2 hide true)
All I am wanting is to have a player spawn with a few items even after death. No other kits to be made available.
What am i doing wrong -
I have added the kit gui code but when i type /kit ingame it says unknown command, also in console it says "unloaded plugin kits v3.1.7 by Reneb" then "previous version of plugin failed to load"
-
[DOUBLEPOST=1457235688][/DOUBLEPOST] -
{
"NPC - GUI Kits": {
"1235439": {
"description": "Welcome on this server, Here is a list of free kits that you can get <color=red>only once each</color>\n\n <color=green>Enjoy your stay</color>",
"kits": [
"kit1",
"kit2"
]
},
"chat": {
"description": "<color=red>Starter kit giver</color>",
"kits": [
"Starter",
"Weekly",
"Once",
]
}
}
} -
-
Well you say to add Permission to create new kits it's -> oxide.grant user "PLAYERNAME" PERMISSIONNAME
But you never told the permission name, or am i just stupid ? -
From my post on page 107
Here you go just copy and paste each one.
You must have the items on your char before making each kit
/kit add "autokit"
/kit items description "This is the autokit" authlevel 2
/kit hide true
/kit add "daily"
/kit items description "Daily resources for being so devoted" cooldown 86400
/kit add "starter"
/kit items description "Help to get started, usable twice at 1hour interval" cooldown 3600
/kit add "sniper"
/kit items description "Help for them raids, usable twice at 1hour interval" cooldown 3600
/kit add "hunter"
/kit items description "Help to hunt them beasts, usable twice at 1hour interval" cooldown 3600
/kit add "blueprints"
/kit items description "Couple blueprints to help you start"
/kit add "donatorreward"
/kit items description "Donator reward" permission Kits.donator
/kit add "vip"
/kit items description "VIP reward" permission Kits.vip
/kit add "moderator"
/kit items description "Moderator Kit" authlevel 1
/kit add "admin"
/kit items description "Admin Kit" authlevel 2 -
Thanks for support! -
-
Is anyone else getting erroneous kit cooldowns on your server? People who just joined for the first time since the last restart already have kits on cooldown