[INACTIVE][MECH] StarterKit v0.4a - Give all Players that join some defined items. [953]

Discussion in 'Inactive/Unsupported Plugins' started by Thomas Bucher, May 17, 2011.

  1. Offline

    Thomas Bucher

    StarterKit - Give all new Player (not seen before by the Plugin) some Starter Items

    Version: v0.4a

    You can Configure what kind of Items a never before seen player get if it Joins you server. There is also a get Items after Respawn mode.

    Features:
    • Give a starterkit to a Player
    • No command needed,it just gets it on Join
    • Config for delay to give the Kit
    • Commands ingame for OPs
    • Respawn Mode Added
    • MultiInventory support on Multiworlds
    Download The Plugin 0.4a
    Download The Plugin 0.4
    Download The Plugin 0.3
    Download The Plugin 0.2a
    Download The Plugin 0.2
    Download The Plugin 0.1c
    Download The Plugin 0.1b
    Download The Plugin 0.1
    Source Code is in the Jar

    Config the Items:
    Code:
    message: You got some Goodies, to start on this Server
    debug: false
    starterkit:
     - <itemid>,<quanitity>
     - <itemid2>,<quanitity2>
    delay: 10000
    onrespawn:false
    usemultiinv: false
    worlds:
    - normal
    - nether
    
    It has some Defaults built in.

    To start over, delete the playerlist.data file from the plugin/StarterKit directory.

    Ingame Commands: (OP only) -> Not for Respawn Mode
    • /starterkit import <importdir>
      Example: /starterkit import world/players
      Imports all players onto the List from the given Dir
    • /starterkit add <playername>
      Example /starterkit add ToasterKTN
      Adds that Playername to the List (Case Sensitive)
    • /starterkit del <playername>
      Example /starterkit del ToasterKTN
      Removes that player from the List
    • /starterkit search <searchstring>
      Example /starterkit search aster
      Lists all Player on the List with aster in the name
    • /starterkit list
      Lists all Player that are on the List
    • /starterkit clear
      Clear the whole list. No more players will be on the List.
    Todos / Ideas:
    • Check Inventory if it is empty before give items.
    • Add Colors to the Message
    • Add Datavalues to the Itemlists
    • Multiline Messages
    Changelog:
    Version 0.4a
    • Import assumes player has been on all Worlds listen in worlds, if
      Multiinv has been enabled.
    Version 0.4
    • Added MultiInv/MultiVerse support.
      Enable usemultiinv
      set the Worlds you wanna get the Kits in worlds:
    • Note: With multiinv support, players in the List are world|playername
      see /starterkit list
      for examples.
    Version 0.3
    • Added a Respawn mode ( onrespawn: true ) in the config file.
    Version 0.2a
    • Added Dup Check on the List itself, to make sure no player gets on the List twice.
    Version 0.2
    • Added ingame Commands for OPs
    Version 0.1c
    • Added Configvariable delay <- delay before give the kit in miliseconds.
    Version 0.1b
    • Add the Items after a 10 Second Delay..
    Version 0.1
    • First Release
    [​IMG]
     
    Taranis01 likes this.
  2. Hmm when will u make one that's works on 1.6.6
     
  3. im running 1.6.6 and works well...

    Any updates?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  4. hmm weird it, just say starterkit disabled (tjek if the plugin is outdated)
     
  5. 2011-06-19 01:42:05 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-823-gb9d0b04-b860jnks (MC: 1.6.6)
    2011-06-18 01:42:05 [INFO] Preparing level "world"
    2011-06-18 01:42:05 [INFO] Preparing start region for level 0
    2011-06-18 01:42:06 [INFO] Preparing spawn area: 4%
    2011-06-18 01:42:09 [INFO] [Permissions] (Yeti) was initialized.
    2011-06-18 01:42:10 [INFO] [StarterKit] Enabled
     
  6. Offline

    TheArchitectOne

    Every time i try to config it it comes out like this :
    19:04:32 [SEVERE] Error occurred while enabling StarterKit v0.4a (Is it up to date?): while scanning a simple key; could not found expected ':'
    while scanning a simple key
    in "<reader>", line 7, column 1:
    onrespawn:true
    ^
    could not found expected ':'
    in "<reader>", line 8, column 1:
    usemultiinv: false
    ^

    at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:400)
    at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:231)
    at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:182)
    at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
    at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
    at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
    at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
    at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
    at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
    at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
    at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
    at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
    at org.bukkit.util.config.Configuration.load(Configuration.java:82)
    at com.bukkit.toasterktn.StarterKit.Config.StarterKitConfig.initialize(StarterKitConfig.java:24)
    at com.bukkit.toasterktn.StarterKit.StarterKit.onEnable(StarterKit.java:23)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:799)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

    Idk whats wrong... heres my cofig file :
    message: You got some Goodies, to start on this Server
    debug: false
    starterkit:
    - 1,2
    - 89,1
    delay: 10000
    onrespawn:true
    usemultiinv: false
     
    eastonch likes this.
  7. I like that idea.. or a set up a permission control so that anyone in a certain group gets to use the respawn kit option
     
  8. Code:
    2011-06-20 17:19:37 [SEVERE] Error occurred while enabling StarterKit v0.4a (Is it up to date?): while scanning a simple key; could not found expected ':'
    while scanning a simple key
     in "<reader>", line 13, column 1:
        onrespawn:false
        ^
    could not found expected ':'
     in "<reader>", line 14, column 1:
        usemultiinv: false
        ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.stalePossibleSimpleKeys(ScannerImpl.java:400)
        at org.yaml.snakeyaml.scanner.ScannerImpl.needMoreTokens(ScannerImpl.java:231)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:182)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:82)
        at com.bukkit.toasterktn.StarterKit.Config.StarterKitConfig.initialize(StarterKitConfig.java:24)
        at com.bukkit.toasterktn.StarterKit.StarterKit.onEnable(StarterKit.java:23)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:806)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:253)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:140)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Sorry bro :(
     
  9. Any luck with getting colors working? I have tried the below ways with no luck

    Code:
    $d
    %d
    &d
    ?d
    message: '%d[Server] $dYou &d have ?d received 25 Feathers to help you get started.'
     
  10. Offline

    KarnEdge

    Great mod, but would it be possible to add support for permissions. I don't want to have to OP myself just to use it everytime.
    Also, with the above post... it would definitely be nice to have support for colors.
     
  11. Offline

    wassilij

    Is this working with Bukkit 935?
     
  12. Offline

    SergeantFly

    Hi,

    Great plugin - I am just a bit confused with the Multiworld/Multiinv support - does this mean you can set it up to give a different starter kit per world? If so then how?
     
  13. Offline

    Thomas Bucher

    you need a space after : on the line
    onrespawn: true

    Sincerely Thomas
     
  14. Offline

    philulrich

    Isn't working for either of the last 2 craftbukkits for me. Here is my config:

    All i get is a help message when i try to run any command. Worked fine til I added config. Advice? I really wanna use this plugin. :)
     
  15. Offline

    Thomas Bucher

    onrespawn needs a space after :
    onrespawn: false
     
    philulrich likes this.
  16. Offline

    philulrich

    :facepalm:

    sorry, I checked it 5 times... haha
     
  17. Offline

    marciocjr13

    Is there any way to add colored wool?
    This plugin is awesome, you did a good job on it!
     
  18. Offline

    Thomas Bucher

    Sorry not yet, i add datavalues to the Todo-List

    Sincerely Thomas
     
  19. Offline

    morizuki

    Code:
    2011-07-07 23:19:42 [SEVERE] Exception in thread "Thread-630890"
    2011-07-07 23:19:42 [SEVERE] java.lang.NullPointerException
    2011-07-07 23:19:42 [SEVERE]     at com.bukkit.toasterktn.StarterKit.PlayerDispenser.run(PlayerDispenser.java:26)
    having error like this.. and my server will hung..

    The Thread-xxxxxx
    where x change number..
     
  20. Offline

    Thomas Bucher

    Holy shit.. this is nasty ;-P
    What Version you use?
    This happens every time or just sparely ?

    EDIT:
    Try this: This may solve this problem.
    Link
     
  21. Offline

    morizuki

    it happen when the server has been open in a long time..
     
  22. Offline

    ghyselsguy65

    How do I set the items they get in the kits? can't find out how in the commands, or in the YML files in the plugin folders...
     
  23. Offline

    Thomas Bucher

    See Post 1
    Config the Items <--
     
  24. Offline

    ghyselsguy65

    I know how to config plugins, but my copy of this doesn't show a place where it asks for item id and amount anywhere in the files.., maybe i'm just blind lol, sry.

    StarterKit YML:
    "message: You got some Goodies, to start on this Serveronrespawn: falsedelay: 10000debug: falseusemultiinv: false"

    JAR's plugin.yml:
    "name: StarterKitversion: 0.4amain: com.bukkit.toasterktn.StarterKit.StarterKitauthor: Thomas Bucher
    commands: starterkit: description: do some starterkit tasks usage: /starterkit import <importdir> | list | clear | search <searchstring> | del <playername> | add <playername>"
     
  25. Offline

    Thomas Bucher

    Its in starterkit.yml... But you have to add it, if you like to config it.. See the democonfig in Post #1. and add it to the starterkit.yml..

    Thank you
     
  26. Offline

    ghyselsguy65

    add it? oh i thought it was already in there (tht'd be a nice update). OK I'll do tht. Should I replace everything with that, or just add the bit about the items?.. I replaced it, but now it doesn't work at all, it just says "/starterkit import <importdir> | list | clear | search <searchstring> | del <playername> | add <playername>" for anything I try to do ingame.
     
  27. Hello.
    I downloaded it and put the .jar into plugins.
    Here`s my code:
    Code:
    message: Du bekommst ein paar Gegenstände für den Start geschenkt
     debug: false
     starterkit:
      -258,1 -257,1 -50,20
     delay: 10000
     onrespawn:false
     usemultiinv: false
     worlds:
     - normal
     - nether

    When I start my server there comes a message with : "Error occurred while enabling StarterKit v0.4a (Is it up to date?): special characters are not allowed
    unacceptable character #FFFD special characters are not allowed
    in "<reader>", position 37


    Could you help me please?
    And sorry for my bad english I'm german
     
  28. Offline

    CushFiles


    If you can, try writing the message without the ä and ü. As far as I can judge this is blocking the plugin from functioning.
     
  29. Offline

    xwyz

    Great plugin.
    Can you add Multi-line message function in the future?

    I want to use this my roleplay server.
     
    Thomas Bucher likes this.
  30. Offline

    Thomas Bucher

    I add this to the Todo-List

    Sincerely Thomas
     
  31. Offline

    McSushi

    where do you find the config files?
     

Share This Page