Integrate command execution from a datapack into an event (existing or otherwise)
- 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
- gamerules (doesn't exist)
- nms reflection (too hard)
- ignite (obv not paper solution)
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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