I would like a gui to pop up when you type /kit which shows all my kits. My kits are: Kit Spud || Symbol Potato || Name &e&lSpud Kit Supplies || Symbol Cake || Name &d&lSupplies Kit Potato || Symbol Potato || Name &6&lPotato Kit SS || Symbol Oak Sapling || Name &a&lSpud Shoot Kit BP || Symbol Baked Potato || Name &c&lBaked Potato Kit RP || Symbol Gold Ingot || Name &e&lRich Potato Kit GP || Symbol Gold Block || Name &6&l&k1&e&lGolden Potato&6&l&k1 Kit OP || Symbol Diamond Axe With Sharpness 6 || Name &c&oKit OP Kit DP || Symbol Diamond Block || Name &9&l&k1&b&lDiamond Potato&9&l&k1 Kit SuperOP || Symbol Diamond Axe With Sharpness 8 || Name &5&oKit SuperOP All the kits should have the lore &8&oOnce A Day except for kit supplies which should have the lore &8&oTwice a day, kit op which should have the lore &8&oOnce Every 4 Days and kit SuperOP which should have the lore &8&oOnce Every 5 Days My kits are essentials kits.
@MrIggyman1234 I'll try to do this. Do you want to inventory to be named "Kits" or something? EDIT: I made it, but I can't have the command to open the GUI be /kit because it messes up the essentials kits. What command do you want to use instead? /kits, /lkit (list kits) /kitgui ?
@MrIggyman1234 Finished it. Tell me if anything is wrong with it. Link: https://www.dropbox.com/s/e7ayrgn7v7dg1tb/KitGUI.jar?dl=0
Of course you can use /kit without it screwing with Essentials... just make sure your plugin loads before Essentials and yours will be the main command... (Use priority.<>)
@MrIggyman1234 Is it just /kit superop? @Justinian6 I had it with /kit but then when it'd run the command for /kit [kit] it would just open the inventory again. @Scorpionvssub There can be... Permissions weren't requested.
haha its that i tried this plugin but no config found the gui was there the pictures were there but when clicking the kits themselves...werent, said no kit made or something. and having a noob kit or starter kit and a super OP kit without permissions...that would mean everyone has super op rest would just not be used
I believe the way @Jomens235 goes about doing this by simply having the player do /kit [kit] instead of hooking into essentials and giving them the items like that. This means permissions would be handled by whether or not you can use the kit. An easy fix for this would to just use /ekit in the plugin instead of /kit. That would avoid confusion and not a lot of people use /ekit as a command.
@Justinian6 Don't know what type of English you speak then. @xMrPoi Good point. Going to try that instead now. @MrIggyman1234 I was comparing the diamond axes incorrectly, so it was just trying to do kit OP again. I fixed that and make it /kit but using @xMrPoi 's idea. Same link... I think. If you need that link again: https://www.dropbox.com/s/e7ayrgn7v7dg1tb/KitGUI.jar?dl=0
@Jomens235 First, double post, xD. Second, Isn't the goal to get the inventory to open with all the kits?
TBH, I personally think that the kits should be treated more as an API (Assuming that the kits are handled by a separate plugin). That way the command log doesn't have to get bogged down with a ton of dumb /kit [Kit] handles... private KitManager kitMan = new KitManager(); kitMan.getKit(<Insert kit>)
@Justinian6 it just runs the command for the kit. It doesn't log what kit they chose. @xMrPoi Yes, the clicked item is compared with the kit symbol then runs a command if it's the same.
@MrIggyman1234 You can edit the post rather than making a brand new one. Is not worth a whole new thread and is a bit more than this one.