Skip to content

Player kit receive event #5234

@JHarris12345

Description

@JHarris12345

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=cf12c2d98b2c491daa64d77efd567916

Error log (if applicable)

No response

Bug description

So this is a suggestion for JRoy (they asked me to put it here). It was about having a PlayerKitReceiveEvent that is called when a player receives an essentials kit. This event would have a way to get (and modify) all tangible items stacks that they will / might receive from the kit. For example, an e.getItemStacks() method.

The benefit of this would be so plugin developers like myself can modify the items of a kit in much more depth and with a lot more customisation that what is available in the kit itself. For example, I want to be able to add the player's UUID in the PersistentDataContainer of each itemstack in the kit (do not want to use NBT for it) and I feel like this event would be incredibly helpful to customise the kit itemstacks in depth

Steps to reproduce

Not an issue

Expected behaviour

Not an issue

Actual behaviour

Not an issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: mainIssues or PRs for the main Essentials moduletype: enhancementFeatures and feature requests.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions