[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

    ubentobox

    Doh, new permissions/kit error...

    Code:
    2011-06-15 13:41:15 [INFO] Starting minecraft server version Beta 1.6.6
    2011-06-15 13:41:15 [INFO] Loading properties
    2011-06-15 13:41:15 [INFO] Starting Minecraft server on 192.168.1.50:25565
    2011-06-15 13:41:15 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-823-gb9d0b04-b860jnks (MC: 1.6.6)
    2011-06-15 13:41:15 [INFO] Preparing level "damnation"
    2011-06-15 13:41:15 [INFO] Preparing start region for level 0
    2011-06-15 13:41:15 [INFO] Preparing start region for level 1
    2011-06-15 13:41:16 [INFO] Preparing spawn area: 61%
    2011-06-15 13:41:16 [INFO] DataSourcePool [iConomyChestShop] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-06-15 13:41:17 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-06-15 13:41:17 [INFO] Entities enhanced[0] subclassed[1]
    2011-06-15 13:41:17 [SEVERE] while parsing a block collection
     in "<reader>", line 94, column 13:
                    - 'glizer.comment.comment'
                    ^
    expected <block end>, but found Scalar
     in "<reader>", line 123, column 16:
                    - 'kit.starterkit'
                       ^
    
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockSequenceEntry.produce(ParserImpl.java:520)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeSequenceNode(Composer.java:203)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:158)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    2011-06-15 13:41:17 [SEVERE] 	at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.configuration.NotNullConfiguration.load(NotNullConfiguration.java:54)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.data.YamlGroupStorage.reload(YamlGroupStorage.java:178)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.data.YamlGroupStorage.<init>(YamlGroupStorage.java:29)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.data.YamlCreator.getGroupStorage(YamlCreator.java:58)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.data.StorageFactory.getGroupStorage(StorageFactory.java:129)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.permissions.ModularControl.forceLoadWorld(ModularControl.java:93)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.permissions.ModularControl.loadWorld(ModularControl.java:84)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijiko.permissions.ModularControl.load(ModularControl.java:104)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijikokun.bukkit.Permissions.Permissions.setupPermissions(Permissions.java:186)
    2011-06-15 13:41:17 [SEVERE] 	at com.nijikokun.bukkit.Permissions.Permissions.onLoad(Permissions.java:139)
    2011-06-15 13:41:17 [SEVERE] 	at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    2011-06-15 13:41:17 [SEVERE] 	at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    2011-06-15 13:41:17 [SEVERE] 	at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    2011-06-15 13:41:17 [SEVERE] 	at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    2011-06-15 13:41:17 [SEVERE] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    2011-06-15 13:41:17 [SEVERE] 	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-15 13:41:17 [SEVERE] [Permissions] Unable to load permission data.
    2011-06-15 13:41:17 [SEVERE] [Permissions] Shutting down Permissions due to error(s).
    2011-06-15 13:41:17 [INFO] [Permissions] (Yeti) was initialized.
    2011-06-15 13:41:17 [INFO] [Factions v1.3.0] === INIT START ===
    2011-06-15 13:41:17 [INFO] [Factions v1.3.0] Loading conf from disk
    2011-06-15 13:41:17 [INFO] [Factions v1.3.0] Loading players from disk
    2011-06-15 13:41:17 [INFO] [Factions v1.3.0] Loading factions from disk
    2011-06-15 13:41:17 [INFO] [Factions v1.3.0] Loading board from disk
    2011-06-15 13:41:17 [INFO] [Factions v1.3.0] Found and will use plugin Permissions v3.1.5
    2011-06-15 13:41:17 [INFO] [Factions v1.3.0] === INIT DONE (Took 103ms) ===
    2011-06-15 13:41:17 [INFO] [MobileAdmin] Loading server stats.
    2011-06-15 13:41:17 [INFO] [MobileAdmin] Loading chat log.
    2011-06-15 13:41:17 [INFO] [MobileAdmin] Loading users.
    2011-06-15 13:41:17 [INFO] [MobileAdmin] Starting server...
    2011-06-15 13:41:17 [INFO] [MobileAdmin] Version 3.0 is enabled!
    2011-06-15 13:41:17 [INFO] [MobileAdmin] Server listening on *:5839
    2011-06-15 13:41:17 [INFO] [Vampire v1.4.1] Found and will use plugin Permissions v3.1.5
    2011-06-15 13:41:17 [WARNING] [Vampire v1.4.1] 'Help' plugin isn't detected. No /help support.
    2011-06-15 13:41:17 [INFO] [Vampire v1.4.1] Enabled
    2011-06-15 13:41:17 [SEVERE] [Netstats] Your database settings aren't set. Disabling Netstats.
    2011-06-15 13:41:17 [INFO] [Netstats] has been disabled.
    2011-06-15 13:41:17 [INFO] MagicSpells v0.6.2 loaded!
    2011-06-15 13:41:17 [INFO] PhatLoots 0.8.1 is enabled!
    2011-06-15 13:41:17 [INFO] [PhatLoots] Successfully linked with Permissions!
    2011-06-15 13:41:18 [INFO] [iConomy] Logging is currently disabled.
    2011-06-15 13:41:18 [INFO] [iConomy] v5.0 (Eruanna) loaded.
    2011-06-15 13:41:18 [INFO] [iConomy] Developed by: [Nijikokun]
    2011-06-15 13:41:18 [INFO] [PhatLoots] Successfully linked with iConomy 5!
    2011-06-15 13:41:18 [INFO] Backup v1.6 was sucessfully loaded!
    2011-06-15 13:41:18 [INFO] [Kit] plugins/KitPlugin/kits.txt reloaded OK
    2011-06-15 13:41:18 [INFO] [Kit] Permission system detected. Good.
    2011-06-15 13:41:18 [INFO] [Kit] hooked into iConomy.
    2011-06-15 13:41:18 [INFO] KitPlugin version 1.2 is enabled!
    2011-06-15 13:41:18 [INFO] [useprofiles, usebansystem, useratings, usecomments, usewhitelist, useglobalbans]
    2011-06-15 13:41:18 [INFO] [glizer] Permission system found
    2011-06-15 13:41:19 [INFO] Connected to glizer-server
    2011-06-15 13:41:19 [INFO] [glizer] Alpha 1.1.17 (Christi) is enabled!
    2011-06-15 13:41:19 [INFO] PvPReward 0.8.1 is enabled!
    2011-06-15 13:41:19 [INFO] [PvPReward] Successfully linked with Permissions!
    2011-06-15 13:41:19 [INFO] [PvPReward] Successfully linked with iConomy 5!
    2011-06-15 13:41:19 [INFO] [ServerStatus] enabled!
    2011-06-15 13:41:19 [INFO] [iConomyChestShop] version 2.75 initialized!
    2011-06-15 13:41:19 [INFO] [iConomyChestShop] iConomy version 5 loaded.
    2011-06-15 13:41:19 [INFO] [iConomyChestShop] Permissions version 3.1.5 loaded.
    2011-06-15 13:41:19 [INFO] [Permissions] (Yeti) disabled successfully.
    2011-06-15 13:41:19 [INFO] Lockdown plugin disabled
    2011-06-15 13:41:19 [INFO] [Residence] Found Permissions Plugin!
    2011-06-15 13:41:19 [INFO] [Residence] Successfully linked with iConomy!
    2011-06-15 13:41:19 [INFO] [Residence] Loaded Residences...
    2011-06-15 13:41:19 [INFO] [Residence] Enabled! Version v2.2 by bekvon
    2011-06-15 13:41:19 [INFO] CraftBukkitUpToDate version 2.5.5 is enabled!
    2011-06-15 13:41:19 [INFO] [Permissions] (Yeti) disabled successfully.
    2011-06-15 13:41:19 [INFO] CButD: CraftBukkit is up to Date
    2011-06-15 13:41:19 [INFO] [Jobs] - enable-stats property does not exist. Defaulting to false
    2011-06-15 13:41:19 [INFO] [Jobs] - max-jobs property not found. Defaulting to unlimited!
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Woodcutter is missing the max-level property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Woodcutter is missing the slots property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Miner is missing the max-level property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Miner is missing the slots property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Builder is missing the max-level property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Builder is missing the slots property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Digger is missing the max-level property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Digger is missing the slots property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Farmer is missing the max-level property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Farmer is missing the slots property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Hunter is missing the max-level property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs] - Job Hunter is missing the slots property. defaulting to no limits !
    2011-06-15 13:41:19 [INFO] [Jobs v2.0.1] has been enabled succesfully.
    2011-06-15 13:41:19 [INFO] [Jobs] Successfully linked with iConomy 5+.
    2011-06-15 13:41:19 [INFO] [Jobs] Successfully linked with Permissions.
    2011-06-15 13:41:19 [INFO] ChestLock 0.9.1 is enabled!
    2011-06-15 13:41:19 [INFO] [ChestLock] Successfully linked with Permissions!
    2011-06-15 13:41:19 [INFO] [Permissions] SQL Interface enabled!
    2011-06-15 13:41:19 [INFO] Done (0.458s)! For help, type "help" or "?"
    2011-06-15 13:41:29 [INFO] The automatic update-Check only work every 6 hours, the last check was 45 minutes ago.
    
    
    Permissions File
     
  3. Offline

    Xemnas33

    Not entirely sure, bit tired. I'd try asking on the permissions thread as to what the error is. At least I can say it's definitely permissions based.
     
  4. Offline

    RaCooN

    Thanks for the quick reply! Installing the plug-in now :D
     
  5. Offline

    Simas

    Why when i take permission kit.kit and ki.name, kit can take only admins but not they who have permissions
     
  6. Offline

    Xemnas33

    What permissions manager are you using?

    Also can I see your permissions file please? :)
     
  7. Offline

    Simas

    Code:
      AdvBuilder:
            default: false
            info:
                prefix: '&2'
                suffix: ''
                build: true
            inheritance:
                - Builder
            permissions:
                - 'bar.foo'
                - 'LazyRoad.build'
                - 'essentials.tpo'
                - 'essentials.sethome'
                - 'essentials.warp'
                - 'essentials.warp.list'
                - 'essentials.list'
                - 'essentials.me'
                - 'lwc.protect'
                - 'essentials.msg'
                - 'essentials.help'
                - 'stargate.free.use'
                - 'PressurePort.Use'
                - 'kit.kit'
                - 'kit.Stone'
                - 'kit.Grass'
                - 'kit.Dirt'
                - 'kit.CobbleStone'
                - 'kit.Planks'
                - 'kit.Sand'
                - 'kit.Glass'
                - 'kit.Sandstone'
                - 'kit.WhiteWool'
                - 'kit.ColorWool'
                - 'kit.StoneSlab'
                - 'kit.Bricks'
                - 'kit.Books'
                - 'kit.WoodStairs'
                - 'kit.Snowblock'
                - 'kit.Cactus'
                - 'kit.Sugarcanes'
                - 'kit.Fence'
                - 'kit.Netherrack'
                - 'kit.Soulsand'
                - 'kit.Glowstone'
                - 'kit.Tools'
                - 'kit.Food'
                - 'izone.zones.create '
                - 'izone.zones.delete'
                - 'izone.zones.info'
                - 'izone.zones.allow'
                - 'izone.zones.disallow'
                - 'izone.zones.expand'
    
    And when i write /kit sand (or other) i get message to i don't have permissions.
     
  8. Offline

    Xemnas33

    Hope that helps :)
     
  9. Offline

    Simas

    Wait. i have permission kit.sand and when i write /kit sand i get permission message, whats wrong?
     
  10. Offline

    Gravity

    Please update the link to the plugin - it is broken
     
  11. Offline

    waffulz

    What he said.
     
  12. Offline

    Xemnas33

    KitPlugin.jar v1.2 (#860)

    It's at the top of page 9
     
  13. Offline

    Gravity

    Thanks. Might want to put it in the official post though so people can see it :p
     
  14. Offline

    Xemnas33

    Yeah Floyd is busy so not sure exactly what I can do about that. I'll ftp it to the server and see if that revives the link :p
     
  15. Offline

    Claryn

    Download link is broken..
     
  16. Offline

    Xemnas33

    Though I can't entirely blame you..there is a link two posts up ;) Need to upload to server will do that now

    Can't as it's dead =/
     
  17. Offline

    gameswereus

    I was looking exactly for this! thanks so much! Keep up the awesome work :p

    EDIT: hmm downloads broken :(
     
  18. Offline

    Xemnas33

    Read the post above and 3/4 above that ;)
     
  19. Offline

    gameswereus

    wow I feel dumb now :p thanks for the download :p
     
  20. does this work with 928?
     
  21. Offline

    mbsuperstar1

  22. Offline

    Hojop25

    Nothing come up when i type /kit or anything. :/
     
  23. Offline

    Xemnas33

    You're not providing much information at all. There's no problems that I know of with the latest version of KitPlugin and the latest recommended CB build.
     
  24. Offline

    Hojop25

    There isnt much to provide, sorry. But if i do any of the commands, nothing shows up atall. Can't seem to figure out why :/
     
  25. Offline

    cornflaks705

    Can someone tell me how to get the kits in the game!?
    when i type /kit it gives me kits: tools and there was stone and i put in glass in the .txt file! when i type /kit stone (or glass) it says that the kit is not found!!! Plz help
     
  26. Offline

    Xemnas33

    Can you post your console log on startup please?

    The command structure is /kit nameofkit so for example:

    Starterkit;268 1;269 1;-300

    To get this kit you would type /kit Starterkit and you need the permissions: - 'kit.kit' and - 'kit.starterkit'

    Hope that helps.
     
  27. Offline

    cornflaks705

    Not working,

    what i have in my "kits" .txt file

    # Name;ID Amount;ID Amount;ID amount (etc)[;-cooldown]
    Starterkit;268 1;269 1;-300
    Rock;1 256
    Glass;20 64

    And in my premissions YML file

    groups:
    Default:
    default: true
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    - Default
    permissions:
    - 'MagicCarpet'
    - 'kit.*'
    - 'kit.kit'
    Moderator:
    default: false
    info:
    prefix: '*'
    suffix: '*'
    build: true
    inheritance:
    - Default
    permissions:
    - 'bar.foo'
    Admins:
    default: false
    info:
    prefix: ''
    suffix: ''
    build: true
    inheritance:
    permissions:
    - 'kit.starterkit'
    - 'kit.kit'
    - 'kit.glass'
    - 'kit.stone'
    - '*'

    EDIT: sorry i dident put this before in concil on start up it says:

    [Kit] plugins/KitPlugin/Kits.txt reloaded OK
    [Kit] Permission System not enabled. Disabling plugin.

    Not sure what that means
     
  28. Offline

    Xemnas33

    Uhm it's not hooking into permissions. What permissions version do you have?
     
  29. Offline

    cornflaks705

    not shure, i will reinstall premissions though
     
  30. Offline

    gameswereus

    If I get it to work it's kind of iffy (probly my bad). When I do, it doesn't charge iconomy.

    EDIT!!: Ok, so I got everything to work correctly. to charge I was leaving out the $... I'ma dumby :p
     
  31. Offline

    Darq

    I see no messages saying that this works on RB 953, so I'll say it!\

    KitPlugin - V1.2 works on RB 953.
     

Share This Page