[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

    FloydATC

    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.

    Changelog:
    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)

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

    Show a list of available kits:
    Code:
    /kit
    Get a named kit (example):
    Code:
    /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:
    Code:
    # 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

    Permissions:
    • '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!)
    Example:
    Code:
            - 'kit.kit'
            - 'kit.reload'
            - 'kit.proxy'
            - 'kit.starterkit'
            - 'kit.tools'
            - 'kit.*'
    
    I'm a Java newbie, please be gentle.
    Thank you :)
     
  2. Offline

    Xemnas33

    Heh yeah it does, Floyd is off to Denmark and i'm trying to get threads moved to a shared account but may not be able to till he gets back.
     
  3. Offline

    Taranis01

    @Xemnas33 @FloydATC
    i have a request: 3 new Variables
    [;-cooldown][;$price][;times,days][;maxuses][;expires]
    times = how many times a player can use this kit (if times=1 each player is only able to use the kit one time)
    times,days ( "2,3" would be 2 uses each 3 days)
    maxuses = the kit will expires (deactivated/deleted) after been used X times
    expires = the kit expires (deactivated/deleted) at a specified date

    one question: is the cooldown working with server-restarts/crashes and big values like 1 day (= 34560)
     
  4. Offline

    Minecrafta2z

    Can't seem to get the cooldown to work? I have it set as ;-5000 but i can spam /kit starterkit over and over? What am i doing wrong? Great plugin btw!
     
  5. Offline

    Xemnas33

    Do you have all permissions?
     
  6. Hi I can not do that by selling Iconomy Iconomy
    Iconomy instalated

    # Name;ID Amount;ID Amount;ID amount (etc)[;-cooldown][;$price]
    Zaklad;272 1;273 1;274 1;275 1;298 1;299 1;300 1;301 1;$50
     
  7. Offline

    Minecrafta2z

    kit.kit and kit.starterkit
     
  8. Offline

    Xemnas33

    Can I have the contents of the kits.txt file and the server startup log please?
     
  9. Offline

    Taranis01

    push ;(
     
  10. Offline

    Xemnas33

    Sorry, forgot to reply to the post. I can take a look at it but i'm not making any promises that it will be done soon as i've got work to do and Floyd is still away. For the last bit see here:

     
  11. Offline

    Taranis01

    thank you Xemnas :)
     
  12. Hi I can not do that by selling Iconomy Iconomy
    Iconomy instalated

    # Name;ID Amount;ID Amount;ID amount (etc)[;-cooldown][;$price]
    Zaklad;272 1;273 1;274 1;275 1;298 1;299 1;300 1;301 1;$50
     
  13. Offline

    Stormbow

    Can kits be One-Use Only with this plugin? I want a starter kit for my server that's free but can only be obtained once, and purchasable kits.

    If so, how would that be accomplished for a set of wooden tools?
     
  14. Offline

    Xemnas33

    Someone has requested 1 use kits and it's on the todo list. Kits can already be bought through iConomy. For example:

    Starterkit;268 1;269 1;-300 1;$250
     
  15. Offline

    Stormbow

    Ok, thanks. I knew about the cost per kit, just didn't see anything about the one-use kits.

    Ah, I hadn't noticed this plugin was so badly outdated.

    Cooldowns don't work (in 1000).
    Players aren't charged for kits (in 1000).

    Code:
    # Name;ID Amount;ID Amount;ID amount (etc)[;-cooldown][;$price]
    Wooden;270 1;269 1;271 1;290 1;268 1;-600;$10
    Stone;274 1;273 1;275 1;291 1;272 1;-600;$20
    Iron;257 1;256 1;258 1;292 1;267 1;-600;$50
    Diamond;278 1;277 1;279 1;293 1;276 1;-600;$100
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  16. Offline

    Xemnas33

    I just tested this. It works fine, you must have the 'kit.proxy' permission. I'm running #1024
     
  17. Offline

    Stormbow

    Yep. That was it!
     
  18. Hi, I'm not entire sure how to get the permissions working on this mod, I have tried
    my account:
    groups:
    - Admins
    permissions:
    - 'kit.*'
    In users.yml, and
    Admins:
    default: false
    info:
    prefix: '[Admin]'
    suffix: ''
    build: true
    inheritance:
    permissions:
    - '*'
    In groups.yml, but it says 'Permission system not enabled. Disabling plugin.' whenever i try start the server. Could someone help with this please?


    Edit: Turned out my permissions folder was set up wrong. Anyway, it now loads, but says [Kit] Permission Denied, even though I am classed as the admin.
     
  19. Offline

    GODnWOLF

    Does this plugin works with 1000?
     
  20. Offline

    Stormbow

    Yes, fully.
     
  21. Offline

    Xemnas33

    Once again restricted with thread changes untill it can be moved to the other account :(
     
  22. Offline

    Teraku

    I can't get any kits. It says "An internal error occured while attempting this command". This is my kits.txt, containing a single kit for essential worldedit stuff. If I type /kit, it shows up, but I can't get it dispensed.

    Code:
    Essentials;278:-5000 1;271 1;345 1
     
  23. Offline

    Xemnas33

    Wooden;270 1;269 1;271 1;290 1;268 1;-600;$10

    Should be as above. So yours would be:

    Essentials;278 1;271 1;345 1;-5000

    Not sure what the 1 on the end is meant to do.
     
  24. Offline

    Teraku

    The "One" on the end is supposed to give "one". Like it said. One compass.


    EDIT: So I tried what you said, and it no longer gives an error. Now it says that you've received a kit, but I don't get any items.
     
  25. Offline

    Maknma01

    when i type in /kit rock/ on the server is not working :(
     
  26. Offline

    Firewolf34

    Absolutely great. This is just what I wanted!!!
     
  27. I'm assuming this is inactive? or is this still working even on 1050?
     
  28. Offline

    Xemnas33

    Should work on #1060. When it's marked inactive i'll move it over to the account that controls PetitionPlugin.
     
  29. Offline

    dillon1005

    How do we get to make the kit or an auto kit
     
  30. Offline

    Xemnas33

    Not sure why you're confused about this. It's explained in the main post. You create kits in the config file.
     
  31. Offline

    dillon1005

    sorry i just started bukkit and i dont know mutch
     

Share This Page