Skip to content

Call ServerCommandEvent on Bukkit#dispatchCommand#9646

Closed
JamieIsGeek wants to merge 1 commit into
PaperMC:masterfrom
JamieIsGeek:patch/server-command-event
Closed

Call ServerCommandEvent on Bukkit#dispatchCommand#9646
JamieIsGeek wants to merge 1 commit into
PaperMC:masterfrom
JamieIsGeek:patch/server-command-event

Conversation

@JamieIsGeek
Copy link
Copy Markdown

Patches #9644

Tested with a test plugin and works fine, not sure if its in the most optimal place however it seems to work just fine

@JamieIsGeek JamieIsGeek requested a review from a team as a code owner August 25, 2023 11:12
Copy link
Copy Markdown
Member

@NoahvdAa NoahvdAa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The event is cancel-able and changes made via #setCommand should also be reflected:
image

@lynxplay
Copy link
Copy Markdown
Contributor

Ended up closing the original issue as it right now isn't feasible to implement this way.
Thank you so much anyway for your contribution, it is greatly appreciated.

@lynxplay lynxplay closed this Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

Bukkit.dispatchCommand does not launch a ServerCommandEvent

3 participants