PaperMC / PaperMC/Paper

Integrate command execution from a datapack into an event (existing or otherwise)

Open
#12,838 0 comments 0 reactions 0 assignees View on GitHub

@Lumine1909 is already working on this.

Since Jul 13, 2025.

  • #12839 by @Lumine1909 — open
status: needs triage
Dominant language
Java
Stars
12.7k
Forks
3.5k
Avg merge
3d 13h
Merged PRs (30d)
11

Description

Is your feature request related to a problem?

The reason why I want this is because my friend is developing a datapack and occasionally has some trouble obviously.

Was wanting to log commands to them, as Minecraft doesn't seem to do this.

Describe the solution you'd like.

Described in issue title, but to reiterate.

When a command is executed by a datapack, fire an event that can be listened to. This could be part of ServerCommandEvent or a new event.

Describe alternatives you've considered.

I considered

  1. gamerules (doesn't exist)
  2. nms reflection (too hard)
  3. ignite (obv not paper solution)
  4. javaagents (want this to be a drag and drop plugin, not really anything to edit the server execution)
Other

original message in #paper-dev on the discord server: https://discord.com/channels/289587909051416579/555462289851940864/1393824603092156518 a conversation was started there, so feel free to use that a reference.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing ServerCommandEvent mentioned in the issue and linked pull request #12839. Done means commands executed by datapacks can trigger a listenable event, either through that event or a new one.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.