EssentialsX

EssentialsX

2M Downloads

Kits new features

NewBestX opened this issue ยท 5 comments

commented

I have a feature request, can you add the option to set someone's armor directly when he gets a kit? So he doesn't have to open his inventory and put it on manually.
Another feature would be leaving blank slots in the kit, so I can for instance give the player 1 bow in the hotbar and arrows in another inventory slot (like slot 10).

Both these features can be implemented if an inventory slot number argument is added to the kit config, something like

pickaxe:
    delay: 1800
    items:
      - 2 257 1 efficiency:1
      - 9 320 16
      - 37 310 1 protection:3

This way, the person typing /kit pickaxe would get an iron pickaxe in the second slot, 16 cooked porkchops in slot 9, and a diamond helmet on his head (if the head is slot 37, I don't know the exact order). We will also have a slot 41 which is the left hand.

Another idea would be to add a slot 0 or slot -1, and the items given this slot would work just like the kits right now, will place the item in the first available slot (in case you don't want to override player's items).

Thank you!

commented

The problem here, what is the player already has armor? Would it be overridden?

commented

I think a lot of essentials kit users want this, including me..

commented

@Bammerbom Yes. I'm not entirely sure if that's a problem though. Actually, I can just move any existing items to their inventory.

commented

@Bammerbom I mentioned in the last part that we should have a "slot 0" or "slot -1" that will make the item act like current kits: find the first empty slot and put it there. This in case you don't want to erase the player's armor (and also this way no functionality will be lost, when we update it could automatically place a 0 or a -1 in front of each item in the kits, and who doesn't want to use this feature won't even fell the difference)

commented

Closing in favor of #347 which suggests adding armor from kits automatically. Space will probably never be supposed properly because items will need to be placed wherever they can fit.