[INACTIVE][MECH] KitPlugin v1.2 - Dispense kits to your players (now w/ iConomy5 support) [600-818]

Discussion in 'Inactive/Unsupported Plugins' started by FloydATC, Jan 19, 2011.

  1. Offline


    This simple plugin does only one thing: It dispenses kits to players upon request, like in hMod.
    Source is included in the .jar, feel free to do whatever you want with it.

    v1.00 - Initial release
    v1.01 - Rebuild (fixed onPlayerCommand issue)
    v1.02 - Implemented Permissions
    v1.03 - Rebuild, implemented cooldown timers
    v1.04 - Rebuild
    v1.06 - Changed cooldown code to use SECONDS, please update kits.txt!
    v1.07 - Time until cooldown is shown in a friendly (but inaccurate) way
    v1.08 - Improved error-checking, simplified install, use onCommand, switched namespace.
    v1.09 - Added "/kit reload" to reload the config without a server restart
    v1.10 - Removed the "stupidly long constructor" as per Bukkit team recommendation
    v1.11 - Added support for item data (yes, wool colors!) and durability. Read the thread.
    v1.12 - Added support for giving kits to other players
    v1.13 - Added an informational log message when a player with 'kit.proxy' permission bypasses a cooldown
    v1.14 - Minor changes to the permission checking and logging
    v1.15 - Added optional iConomy support and price tags
    v1.2 - Updated to support iConomy 5.0 (overhaul by Xemnas33)

    • Requires the Permission plugin (2.6 or equivalent)
    How to use:

    Show a list of available kits:
    Get a named kit (example):
    /kit starterkit
    How to install:

    1. Download http://minecraft.atc.no/plugins/KitPlugin.jar
    2. Copy it to your "plugins" directory
    3. Create a file calles plugins/KitPlugin/kits.txt
    4. Describe the kits you want to dispense. For example:
    # Name;ID Amount;ID Amount;ID amount (etc)[;-cooldown][;$price]
    Starterkit;268 1;269 1;-300
    Rock;1 256
    Wool;35:0 64;35:1 64;35:2 64;35:3 64;35:4 64;35:5 64;35:6 64;35:7 64;35:8 64;35:9 64;35:10 64;35:11 64;35:12 64;35:13 64;35:14 64;35:15 64;-3600
    Note that the cooldown is an optional negative integer. -300 means 300 SECONDS (5 minutes)
    ID can be just a numerical id, id:data, id::durability or id:data:durability

    • 'kit' (or 'kit.kit') required to access the command itself
    • 'kit.reload' required to reload the configuration
    • 'kit.proxy' required to give kits to other players and bypasses any cooldown checks.
    • 'kit.<name of kit>' required to get a specific kit (use lowercase!)
            - 'kit.kit'
            - 'kit.reload'
            - 'kit.proxy'
            - 'kit.starterkit'
            - 'kit.tools'
            - 'kit.*'
    I'm a Java newbie, please be gentle.
    Thank you :)
  2. Offline


    So... Where have this mod maker before? [​IMG]
  3. How do I use damage in it?
  4. Offline


    "An internal error occured while attempting to perform this commans" when doing "/kit" command :(
  5. Offline


    Me too Tott.
  6. Offline


    I do not like it! Can't..live..without..this..plugin!
  7. Offline


    what am i doing wrong?
    i have changed the file to my world name and im using perm 2.1 and putted it in the perm map
    and i want kit to work for all users this is on my test server im trying it but i cant make it work for me
  8. Offline


    /kit @monir: Lose the < and > characters in the YML file. When the example says 'kit.<kit name of kit>', the brackets are just used to denote what needs to be replaced. Example: 'kit.startkit'

    If the problem persists, please copy and paste the relevant log entries so I can see where the problem occurs (full stack trace, if any). Include your 'kits.txt' file. Oh! And make sure your Permissions plugin is up to date.
  9. Offline

    Moo Master

    does this conflict with essentials? Because i can't get their kits to work and im trying to see if this would.
  10. Offline


    A few suggestions.
    1) Number of uses per player. (I.E. Starter Kit is only avaible once)
    2) Being able to grant kits, instead of the players getting the kits themselves. (I.E. '/kit Starter Newbie')
    Thanks though :)
  11. Offline


    It's been a while since I tried Essentials, back then I had to disable the "kit" command in Essentials or it would conflict. I don't know how it works now.
    --- merged: Mar 6, 2011 9:52 AM ---
    Both are good ideas. I just have to come up with a good config file format that ensures backward compatibility and allows for future expansion.
  12. Offline


    I'm getting this error. Is there a way to fix it? I'm using the latest version of CraftBukkit and Bukkit. Help please!
  13. Offline


    Can we please get damage control so we can specify sub-types and how durable armor is. (more for the block types because of coloured wool. (two other posts have asked for this as well!)
  14. Offline


    Just to avoid confusion here, you know that all I can do is set how worn an item is?
    I don't think it's possible to generate, say, a diamond pickaxe with 999999 durability. For that, you need some sort of durability cheat on the server.
  15. Offline


    Can't you set negative durability like in InvEdit?
  16. Offline


    Maybe, I thought that bug was fixed a good while back?
  17. Offline


    Nope still works a charm. There's an odd issue in multi-player that once in a while if you don't eat healing stuff after taking massive damage you'll die randomly on the next damage you take. However items have no issue lasting forever.
  18. Offline


    I stand... err... sit corrected :)
  19. Offline



    Please support the auto-updating plugin CraftBukkitUpToDate. To do so please provide a permanent direct link to the author of CraftBukkitUpToDate.

    The below is information they provide
    Show Spoiler

    My Plugin didn't supported, how i get it to work with CButD?
    Give me a permanent link to your Plugin, i will add it. That's all no changes at your SourceCode or something else, all I need is a permanent link to the newest version of your Plugin. A good place for this is http://www.dropbox.com/ or for OpenSource https://github.com/.

    I really enjoy using your plugin and would like to see it work well with the above listed 'updater' plugin.
  20. Offline


    Request. Block a player for using any kit when there inventory is full. If there inventory is full and they use a kit they receive no item but get the cool down anyways.
  21. Offline


    @dslip: Done, thanks for the tip.

    @NEO: I'll keep it in mind but colors have priority :)
  22. Offline


    Try using:

    Instead of the kit.kit, kit.reload (which shouldn't be given to everyone anyway) and kit.<starterkit> (which shouldn't have the <> characters)
    Simple suggestion, provide an example text file with default permissions as you did with 'kit.txt' at the top of the page. This should make it easier for you by answering more permissions questions at the top.

    For a Java newbie, you are right on top of this plugin, that is impressive.
  23. Offline


    Good point, added an example.

    Thanks, I'm getting better but the item data thing still freaks me out... Parsing text data is so much simpler in Perl :)
  24. Offline


    Confirmed working with build #556. [​IMG]
  25. Offline


    Support for block types would definitely be most appreciated!
  26. Offline


    erm help?
    i installed it correctly but when i on my server it always displays this:
    23:46:12 [INFO] Starting minecraft server version Beta 1.3
    23:46:12 [INFO] Loading properties
    23:46:12 [INFO] Starting Minecraft server on
    23:46:12 [WARNING] The server will make no attempt to authenticate usernames. Beware.
    23:46:12 [WARNING] While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
    23:46:12 [WARNING] To change this, set "online-mode" to "true" in the server.settings file.
    23:46:13 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-g6c6c30a-b556jnks (MC: 1.3)
    23:46:13 [INFO] Preparing level "world"
    23:46:13 [INFO] Preparing start region
    23:46:13 [INFO] [Kit] Permission system not enabled. Disabling plugin.
    23:46:13 [INFO] KitPlugin version 1.1 is disabled!
    23:46:13 [INFO] KitPlugin version 1.1 is enabled!
    23:46:13 [INFO] Done (0.086s)! For help, type "help" or "?"

    and i the game when i type "/kit" it shows nothing i put this in my kits.txt :

    iamsuchanoob;272 1;273 1;274 1;275 1;320 5;1 64;-300
    griefer;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;46 64;-1000000
  27. Offline


    The plugin can't find Permissions.jar (or a compatible plugin) anywhere.
    This is required, as described in the OP.
  28. Offline


    Is it possible for you to make a version that would default to ops.txt if permissions plugin not installed ?

    Permissions plugins are a big pain in the *** and break everything every time they are updated or abandoned. Just another weak link in a rusty chain. Until a permissions system is written in stone I try to stay away from any mod that requires someone else's plugin to run. I often encourage makers of mods that do use permissions to make it so that their mod will default to op-list for implementation. Mod creators that put in a default to op list soon find out that they aren't harassed by admin.'s and their players when changes take place because limited functionality remains and is in the hands of trusted administrators.
    prosay likes this.
  29. Offline


    can give link for the permission plugin (.jar)
  30. Offline


    The source code is included in the JAR, feel free to rip out the Permissions related stuff.

    I don't think this has happened to me once since I released my first plugin, unless you refer to the changes to the plugin API (namespace signing, multi-world, constructor) that broke pretty much ALL plugins.

    Bukkit will have its own permission model sooner or later and the "ops.txt" model is just too simplistic for anything more than a home server IMHO. My plugins use only a minimum set of the features offered by the Permissions family of plugins, maybe that's why I still haven't changed any of the code originally written against v1.8

    (Or "Search titles only" for "Permissions")
  31. Offline


    can you help to find out where the permissions are in the plugin or teach me how to use the permissions plugin

Share This Page