Skip to content

Improvement PlayerItemConsumeEvent call for instant consumption#14096

Open
Doc94 wants to merge 1 commit into
PaperMC:mainfrom
Doc94:fix/13138-call-PlayerItemConsumeEvent-for-instant-consume
Open

Improvement PlayerItemConsumeEvent call for instant consumption#14096
Doc94 wants to merge 1 commit into
PaperMC:mainfrom
Doc94:fix/13138-call-PlayerItemConsumeEvent-for-instant-consume

Conversation

@Doc94

@Doc94 Doc94 commented Jul 23, 2026

Copy link
Copy Markdown
Member

This PR improvement the logic for PlayerItemConsumeEvent, currently only its called when the use of item reach 0 (consume) this logic works when the consume time is set and its not 0, when its 0 this logic is skipped and the event its not called, for fix this i call this event for that case too and handle the most of logic like happen with the item in use...

This can close #13138

@Doc94
Doc94 requested a review from a team as a code owner July 23, 2026 14:19
@github-project-automation github-project-automation Bot moved this to Awaiting review in Paper PR Queue Jul 23, 2026
@Doc94
Doc94 force-pushed the fix/13138-call-PlayerItemConsumeEvent-for-instant-consume branch from c68ca37 to 11dae8c Compare July 23, 2026 14:25
@Doc94 Doc94 added the publish-pr Enables a workflow to build Paperclip jars on the pull request. label Jul 23, 2026
@papermc-pr-publishing

papermc-pr-publishing Bot commented Jul 23, 2026

Copy link
Copy Markdown

Last updated for: a79d5bb8c48e8b1c3336bdbefcc06e17252c7bfe.

Download the Paperclip jar for this pull request: paper-14096.zip

Maven Publication

The artifacts published by this PR:

Repository Declaration

In order to use the artifacts published by the PR, add the following repository to your buildscript:

repositories {
    maven("https://maven-prs.papermc.io/Paper/pr14096") {
        name = "Maven for PR #14096" // https://github.com/PaperMC/Paper/pull/14096
        mavenContent {
            includeModule("io.papermc.paper", "dev-bundle")
            includeModule("io.papermc.paper", "paper-api")
        }
    }
}

@Doc94
Doc94 force-pushed the fix/13138-call-PlayerItemConsumeEvent-for-instant-consume branch from 11dae8c to a79d5bb Compare July 23, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

publish-pr Enables a workflow to build Paperclip jars on the pull request.

Projects

Status: Awaiting review

Development

Successfully merging this pull request may close these issues.

PlayerItemConsumeEvent triggering issue

1 participant