Kits

Allow players to redeem sets of items

Total Downloads: 3,383 - First Release: May 15, 2015 - Last Update: May 18, 2015

5/5, 19 likes
  1. You'd only 'have' to edit the Kits.json configuration file if you'd want/need to change the language the messages are written in or if you'd need to set a different permission group that is able run the admin commands to create kits. All the kits (Kits.json data file) can be created in-game by using the chat commands mentioned in the plugin overview.

    Kits.json config:
    Code:
    {
      "AdminMessages": {
        "KitAutoKitLimit": "You can only have one kit set as an AutoKit",
        "KitCreated": "You have created the kit '{0}'.",
        "KitCreatedInventoryFlag": "{0} items have been added to the kit.",
        "KitExists": "A kit with the name '{0}' already exists.",
        "KitItemAdded": "Added item {0} ({1}) to the kit {2}.",
        "KitItemDoesNotExist": "The item {0} does not exist. Check /itemlist for a list of available items.",
        "KitItemNotFound": "Couldn't find the item {0}.",
        "KitItemRemoved": "Removed item {0} from the kit {1}.",
        "KitRemoved": "You have removed the kit '{0}'.",
        "KitReset": "Kits data was reset for {0}",
        "KitValueUpdated": "You have set the {0} option on kit {1} to {2}."
      },
      "Dictionary": {
        "AllKits": "all kits",
        "Cooldown": "Cooldown:",
        "Day": "day",
        "Days": "days",
        "Hour": "hour",
        "Hours": "hours",
        "Minute": "minute",
        "Minutes": "minutes",
        "Permission": "Permission:",
        "RemainingCooldown": "Remaining cooldown:",
        "RemainingUses": "Remaining uses:",
        "Reset": "Reset:",
        "Second": "second",
        "Seconds": "seconds",
        "Uses": "Uses:"
      },
      "HelpMessages": {
        "RedeemKit": "You can redeem a kit by using the command [CCCCCC]/kit <name>[FFFFFF], where <name> is the kit you want to redeem.",
        "ShowKits": "You can view all the available kits by using the command [CCCCCC]/kit list"
      },
      "Messages": {
        "InvalidArguments": "Invalid arguments supplied, check /kit help for the available options.",
        "KitCantRedeemAutokit": "You can't manually redeemed an autokit.",
        "KitList": "The following kits are available:",
        "KitNoPermission": "You are not allowed to redeem this kit.",
        "KitNoRoom": "You can't redeem the kit '{0}' because you don't have enough room in your inventory ({1} slots needed).",
        "KitNotFound": "A kit with the name '{0}' does not exist.",
        "KitNoUsesLeft": "You have reached your limit for this kit.",
        "KitOnCooldown": "This kit is on cooldown. You can't use this kit for another {0}.",
        "KitRedeemed": "You have redeemed a kit: {0}.",
        "KitUsesReset": "Uses reset after {0}.",
        "KitUsesResetRemaining": "{0} until your uses reset.",
        "NoKitsAvailable": "There are no kits available right now.",
        "NotAllowed": "You are not allowed to use this command!"
      },
      "Permissions": {
        "UseOxidePermissions": false,
        "UseRoKPermissions": true
      },
      "Settings": {
        "AdminPermission": "admin",
        "ChatPrefix": "Kits",
        "ChatPrefixColor": "950415",
        "LogToConsole": false
      }
    }
    Kits.json data:
    Code:
    {
      "KitsData": [
        {
          "Name": "Wood",
          "Description": "Some wood to get you started",
          "Enabled": false,
          "Permission": null,
          "Cooldown": 0,
          "Uses": 1,
          "UsesReset": 0,
          "Stacks": 2,
          "Items": [
            {
              "Name": "Wood",
              "Amount": 2000
            }
          ]
        }
      ],
      "KitsPlayerData": []
    }
     
  2. I was wondering if there is a way I can set a kit as Admin only, but have the ability to give the kit to people?

    For example I can:
    /give (item) 1 (username)

    Can I (or is it even possible):
    /kit (kitname) give (username)
    [DOUBLEPOST=1433529641][/DOUBLEPOST]
    Also .. is there a way I can give permission for different types of admins to use a kit.

    I have "owner", "admin", "admin2", "admin3", and "admin4". Can I give permission for just owner and admin, but not the rest?
     
  3. Hey I was wondering if a plugin to control resource output from rocks, trees etc. was in the works. Also is a /tpr, /tpa plugin possible?
     
  4. Great plugin!

    Wondering if there is a plan to add Autokits?

    Would eliminate a lot of the "How do I get a starting kit?" questions from new players.
     
  5. I'm looking into it, it's not as easy as giving a kit when a player spawns as it doesn't always give it when doing that :(
     
  6. I understand. We all appreciate every plugin you make, Mughisi!
     
  7. Well, I can't seem to get kits working I do /kit modify starterkit additem stone hatchet doesnt work cause of the space thing but I want a pre made someone can cook up for me thats a good starter kit. With only 1 time use because im having problems
     
  8. i'm having an issue where any kit assigned to a group for example admin can't limit the uses so therefore it can be spammed. Trying to add donator kits but they can spam redeem them even tho I set a -uses and -reset command when I created the kit. -uses and -reset still work for non permission needed kits.
     
    Last edited by a moderator: Jun 28, 2015
  9. how i add Permissions to me owner ? ?
     
  10. -permission owner
     
  11. I'm having trouble with kits on my server, I'm not sure what to put under item name everytime i put it down it says item doesn't exist or something like that so I need someone to edit this kits.json I can send them 1 dollar via paypal if they do it. :)
    Code:
    {
      "KitsData": [
        {
          "Name": "Steelkit",
          "Description": "Steel Kit",
          "Enabled": false,
          "Permission": null,
          "Cooldown": 0,
          "Uses": 1,
          "UsesReset": 0,
          "Stacks": 0,
          "Items": []
        }
      ],
      "KitsPlayerData": [
        {
          "Id": "76561198133113492",
          "Name": "Kyrotix",
          "Data": []
        }
      ]
    }
    I want the steel kits to be reedeemable every 60 minutes. Unlimited Uses
    (Full Steel Armor) + Steel Greatword + Steel sword

    I also want the reinforced iron blocks to be 250 only 1 use.

    A Leather kit reedemable every 30 minutes. Unlimted uses.
    (Full leather armor) + Iron battle axe + Iron sword

    Will raise the amount to $3 via paypal if someone can dedicate there time to do this.
     
    Last edited by a moderator: Jul 9, 2015
  12. Hello Friends..

    Sorry for mi bed Englisch, and so i have big Problems to Make a Start Kit for mi German Server.
    I wont to make One Starter Kit for new People when there Tipe / Kit StarterKit , the become (all 7 Days) One Stone Pickacke, One Stone Axe One, One Lether Crest, 1K Wood and 1K Stone.

    Can you Pls Help me to Write The Script?

    Thank you werry mutch from www.rok-gaming.de
     
  13. Hello, I have uploaded the kits.cs but when i type any of the commands i get nothing .. the kits.cs is laoded here with the other plugins . /1171730/rok/ROK_Data/Plugins

    what else do i have to do to get this working?

    Thanks
     
  14. Wulf

    Wulf Community Admin

    Do the logs or console show it as actually being loaded?
     
  15. when you say console .. you mean ??? in game if i type /help kits .. i get nothing
     
  16. Wulf

    Wulf Community Admin

    No, I mean saves/oxide/logs or your server console (if using ROK.exe).
     
  17. i see a compiler
    Code:
    [SERVER] Started as service
    [SERVER] Running as service
    [SERVER] Got Message: Ready
    [SERVER] Got Message: Compile
    [SERVER] Console: Kits.cs(149,25): warning CS0649: Field `Oxide.Plugins.Kits.KitData.Enabled' is never assigned to, and will always have its default value `false'
    [SERVER] Got Message: Compile
    [SERVER] Console: Jail.cs(226,17): warning CS0472: The result of comparing value type `UnityEngine.Vector3' with null is always `false'
    Jail.cs(226,38): warning CS0162: Unreachable code detected
    Jail.cs(501,21): warning CS0162: Unreachable code detected
    Jail.cs(74,14): warning CS0414: The private field `Oxide.Plugins.Jail.hasSpawns' is assigned but its value is never used
    [SERVER] Connection closed. Shutdown
    [SERVER] Started as service
    [SERVER] Running as service
    [SERVER] Got Message: Ready
    [SERVER] Got Message: Compile
    [SERVER] Console: Jail.cs(226,17): warning CS0472: The result of comparing value type `UnityEngine.Vector3' with null is always `false'
    Jail.cs(226,38): warning CS0162: Unreachable code detected
    Jail.cs(501,21): warning CS0162: Unreachable code detected
    Jail.cs(74,14): warning CS0414: The private field `Oxide.Plugins.Jail.hasSpawns' is assigned but its value is never used
    Kits.cs(149,25): warning CS0649: Field `Oxide.Plugins.Kits.KitData.Enabled' is never assigned to, and will always have its default value `false'
    [DOUBLEPOST=1437343006][/DOUBLEPOST]i never setup the main thing .. i just told the guys a gameservers.com that i wanted to use oxide .. they set it up and told me that i have to do the plugins .. so
     
  18. Our Kits seem to be doing something new that was not happening before. Several are set to reset every seven days and were giving the proper countdown. Now, they are staying at 7 days no matter what. Has anyone had this issue?
     
  19. Any suggestions on my problem? I might have went about addign the plugin wrong .. but all the other ones seem to work ...
     
  20. Wulf

    Wulf Community Admin

    I don't see anything wrong in your log that would cause this plugin to not work. What plugin are you using the provide the "/help kits" command? I don't think you'll see anything with that, you'd just need to configure the plugin as show on the Overview here.