Hi,
Just have an question if this is something you can change, on math calculation after redeem - "You need to wait x seconds"
Insted, Could you change the "You need to wait X seconds", so it can be hour, then minutes, insted of seconds, when the player tries to redeem the kit again?
mutch easier to the players
This code:
ThanksCode:if (kit.cooldown > 0) { var ct = CurrentTime(); if (kitData.cooldown > ct && kitData.cooldown != 0.0) return $"You need to wait {Math.Abs(Math.Ceiling(kitData.cooldown - ct))} seconds to use this kit"; }
Rust-Kits
Moved
Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
How can make a kit redeemed every 30 days once per player?
-
So if you do this:
1) Empty your inventory
2) Add in your inventory the kit that you want players to have
3) use /kit add "kitname"
4) set the options via: /kit option1 value1 option2 value2 etc
ex:
/kit items max 1 cooldown 2592000 description "description here" -
I have a little Problem...I have create a kit "Steamgroup" with permission "kits.steamgroup"...
But ingame (im owner of the Server but set as default) i can reedem the kit without having kits.steamgroup permission ?
here my Kits.json
Code:{ "Kits": { "starter": { "name": "starter", "description": "Every hour kit, max usage: 10", "max": 10, "cooldown": 3600.0, "authlevel": 0, "xpamount": 0, "hide": false, "npconly": false, "permission": "kits.false", "image": null, "building": null, "items": [ { "itemid": 698310895, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -770311783, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 1253290621, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -139769801, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -2043730634, "container": "main", "amount": 5, "skinid": 0, "weapon": false, "mods": [] } ] }, "autokit": { "name": "autokit", "description": null, "max": 0, "cooldown": 0.0, "authlevel": 0, "xpamount": 0, "hide": true, "npconly": false, "permission": null, "image": null, "building": null, "items": [ { "itemid": 3506021, "container": "belt", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 110547964, "container": "belt", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -1289478934, "container": "belt", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -1127699509, "container": "belt", "amount": 1, "skinid": 0, "weapon": false, "mods": [] } ] }, "steam": { "name": "steam", "description": "Steam Group Kit", "max": 1, "cooldown": 0.0, "authlevel": 0, "xpamount": 0, "hide": false, "npconly": false, "permission": "kits.steamgroup", "image": null, "building": null, "items": [ { "itemid": -1732316031, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 563023711, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 3655341, "container": "main", "amount": 10000, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -892070738, "container": "main", "amount": 5000, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 889398893, "container": "main", "amount": 3000, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -1059362949, "container": "main", "amount": 3000, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 548699316, "container": "main", "amount": 1, "skinid": 0, "weapon": true, "mods": [] }, { "itemid": -1716193401, "container": "main", "amount": 1, "skinid": 0, "weapon": true, "mods": [] }, { "itemid": -465236267, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 1213686767, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -141135377, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 815896488, "container": "main", "amount": 1000, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": -533875561, "container": "main", "amount": 1000, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 640562379, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] }, { "itemid": 271534758, "container": "main", "amount": 1, "skinid": 0, "weapon": false, "mods": [] } ] } } }
-
Please help, I seem to have broken my kits file, removed some from the middle of the data file, everything seems fine but when i reload, no kits, I add a test kit, it shows up, it creates a new file with just the new test kit in it, I go to edit, If I try paste back in a few of the old ones in between, it works, but then when I paste all of the ones back in, I'm back to no kits showing on /kit, I figure there's an error in there somewhere but I can't find it, JSON validator just gives false positives.
Attached Files:
-
-
Dont forget to change it to json FileAttached Files:
-
-
YOU BEAUTIFUL BUGGER! E-KISS! THANKYOU
Please tell me what was wrong, I looked all over the file. I figure it was just a missing bracket somewhere. -
-
-
when i try to do a building the building is pasted through the floor (i have auto height set to true)
-
-
-
I cant get the plugin in to work for me :S i add the plugin but when i try to add a kit it says "you don't have that permission"
and i tried to do "oxide.grant user "myname" kit add but that is not a permisson????? -
If you installed the plugin correctly and you are an admin, you dont need to add permission to create the kits.
Only if you made a custom permissions.
I didnt add any permissions, I just created the kits as described on the overview and it worked for me. -
-
You dont need to grant yourself permission. Just simply create the kits. -
but i cant do anything with the kits plugin -
It can also be that you need to run steam update, update the oxide mod, restart the server and try the kit commands without granting yourself permission. -
and the server is updated so is steam -
Are you using Rusty Rcon Tool? and added yourself as the owner?
Im using that one and did the:
ownerid StemID "Missy"
After that I did the server.writecfg to save it.
If nothing works maybe delete the kit plugin and reinstall it back.
Just remember to remove the json file too.
And remember to update the oxide mod itself