Two questions
If you dont have enough room when you try to get a kit do you get a message
Can you have more than one autokit if yes do you need to rename then autokit, autokit1 autokit2 but going by the config it can be any name but then would it still auto give them a kit on respawn or login
Rust-Kits
Moved
Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
There is only (1) autokit...
There are unlimited AutoKits. As my update explains, there is now the ability to add as many "AutoKits" as you want.
"AutoKits extends the default autokit functionality but gives the customization of having multiple different autokits. On respawn this plugin will check any entries in the config and if the player has permission will give the kit. To configure an autokit simply provide a permission name (you can make this up --> see example) and a kit name (this kit must exist). So for example, if you have a kit named guns.. you might make an autokit of: "guns", "guns". Once you reload Kits it will automatically register permission: Kits.guns ... if you give this permission to a player they will get the gun kit on EVERY respawn."
Here is an example of what the config could look like:
Code:"AutoKits": { "autoadmin": "autoadmin", "autovip": "autovip", "autoyoutube": "autoyoutube", "defaultauto": "defaultauto" }
On reload of Kits it will automatically register "Kits.the value on the left side"... so Kits.autoadmin .. Kits.autovip.
Now, this can sound confusing but that is because it is so simple that we all overthink it.
So the left hand side is the permission that will be created... be default ALL permissions must be registered with the Plugins name.. therefore it makes it Kits. + your permission name...
YOU DO NOT NEED TO CREATE PERMISSIONS.. the plugin does it automatically on load.
The right hand side is the kit, which you have already created and exists in the Kits.json within the Data folder.
Now, if a player has say Kits.autoadmin .. then on respawn they will get the autoadmin kit.
If they have more then one, they get them both/all.
-
I'm not sure what happen, but I updated the file and now when I try to do /kit commands it keeps saying "You don't have access to this command". Do I have setup permissions or something?
-
Posting this here as the kit plugin has changed
You must have the items on your char before making each kit
After you make a kit with a permission it will have the kits. in front of it so for vip it will be Kits.vip for donator it will be Kits.donator just do what I posted below and it will auto add the Kits. in front of the permission.
The permission that you will now find in your kits.json file found in your oxide/data folder is what you will need to add to the new group you have set up for the special 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 donator
/kit add "vip"
/kit items description "VIP reward" permission vip
/kit add "moderator"
/kit items description "Moderator Kit" authlevel 1
/kit add "admin"
/kit items description "Admin Kit" authlevel 2
There are unlimited AutoKits. As @Absolut update explains, there is now the ability to add as many "AutoKits" as you want.
"AutoKits extends the default autokit functionality but gives the customization of having multiple different autokits. On respawn this plugin will check any entries in the config and if the player has permission will give the kit. To configure an autokit simply provide a permission name (you can make this up --> see example) and a kit name (this kit must exist). So for example, if you have a kit named guns.. you might make an autokit of: "guns", "guns". Once you reload Kits it will automatically register permission: Kits.guns ... if you give this permission to a group or player they will get the gun kit on EVERY respawn."
Here is an example of what the config could look like:
Code:"AutoKits": { "autoadmin": "autoadmin", "autovip": "autovip", "autoyoutube": "autoyoutube", "defaultauto": "defaultauto" }
On reload of Kits it will automatically register "Kits.the value on the left side"... so Kits.autoadmin .. Kits.autovip.
Now, this can sound confusing but that is because it is so simple that we all overthink it.
So the left hand side is the permission that will be created... be default ALL permissions must be registered with the Plugins name.. therefore it makes it Kits. + your permission name...
YOU DO NOT NEED TO CREATE PERMISSIONS.. the plugin does it automatically on load.
The right hand side is the kit, which you have already created and exists in the Kits.json within the Data folder.
Now, if a player has say Kits.autoadmin .. then on respawn they will get the autoadmin kit.
If they have more then one, they get them both/all.
I find its easier to add the permission to the group this way you dont need to add it to every user on your server the default group will get whatever autokit you decide then you have the option to add better auto kits to custom groups like vip or donation groupsLast edited by a moderator: Feb 28, 2017 -
I tried just editing a kit that was already made and it keeps saying "You don't have access to this command" I tried reloading the plugin and still nothing. Not sure what happened as it worked fine the other day.
So through the adminmenu plugin i granted myself the kit.admin and the other three permissions and yet still won't let me edit any of the kits I made. Is there something I am doing wrong?
If you need me to upload anything let me know pleaseLast edited by a moderator: Feb 28, 2017 -
-
@Absolut the new version of plugin is so Great! Congrats! I love your work.
Can you add some features for make the Kits plugin more fancy ?
1- When: "KitMaxUses": "Max Uses: 0 (ZERO=Unlimited)"
THEN show:
Max uses: Unlimited / Remaining Uses: Unlimited
In the Kit menu ?
2- Can you add localization for the messages: KIT REDEEMED and YOU NEED TO WAIT xxx SECONDS... ?
3- Can you add a better time format? I mean, if the seconds are 60 or more, then is better say Minute, if the minutes are great than 60 minutes is better say hour... examples:
180 seconds = Cooldown: 3 m (3 minutes)
185 seconds = Cooldown: 3.5 m (3 minutes plus 5 seconds)
3600 seconds= Cooldown: 1 h (1 hour exact)
3800 seconds= Cooldown: 1.3 (1 hour plus around 3 minutes) or more exact: 1.3.33 (1 hour 3 minutes 33 seconds)
Maybe format can be: 1h3'33'' or 1:3:33 or similar.Last edited by a moderator: Feb 28, 2017 -
-
[DOUBLEPOST=1488254475][/DOUBLEPOST]
Also while we are starting fresh, let's get an accurate list of issues and enhancement requests. -
I added more work for you
im sure you are ok with the request, no rushes, thanks for all.Last edited by a moderator: Feb 28, 2017 -
Removed the plugin all together, can't figure it out.
-
-
-
Getting "reference of an object" error message with the latest version. Server loads just fine without this plugin and with the previous version.
-
@Absolut I loved this design options.
Look my current set:
There is a way to center the panels with the background? -
To clear data, unload everything, delete or rename files, reload. If that isnt an issue make sure you give yourself owner or moderator (and **re-log)
[DOUBLEPOST=1488258657][/DOUBLEPOST]
[DOUBLEPOST=1488258691][/DOUBLEPOST] -
Hey absolut whenever i type /kit kitname it redeems it and brings up the menu and to close it you need to type /kit and click close.
-
It will only happen if you are using the UI AND chat command. I will not get a fix out tonight :/ But Ill get it out first thing tomorrow. Sorry! -
[DOUBLEPOST=1488258691][/DOUBLEPOST]
During redemption of kit? Or when?[/QUOTE]
I can't even load the server. It happens when I run the bat file. -
Anything else in logs? Really tough to troubleshoot off of just that :/