How would I technically write kits?

Discussion in 'Plugin Development' started by TheEnderCrafter9, Aug 31, 2016.

Thread Status:
Not open for further replies.
  1. I'm to make custom kits just like Essentials, however, I face one problem: I have no clue how the file structure and config would look like. Does anyone know what it should like so I can store Lore,Name and Material?
     
  2. Offline

    kameronn

    @TheEnderCrafter9
    Well what I use, (Credits to @Jakeeeee ) is a string list that reads materials, lore and names. For example it would look something like this in the config.

    "list:
    - Material:GRASS Lore:Lore_is_here Name:&cCustom_Name"
    Then you would split spaces in between each, check if the string list contains what you're looking for. If you wanted to add lets say a space in your name or lore, you would just use something like _'s or - and convert those to spaces
     
  3. Offline

    Lordloss

    You dont have to parse this stuff yourself. Simply create a List with ItemStacks and use config.set("path", list)
     
  4. Thanks, I am currently making one of these.
     
Thread Status:
Not open for further replies.

Share This Page