-
-
Notifications
You must be signed in to change notification settings - Fork 71
Paper CommandAPI #517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Paper CommandAPI #517
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 tasks
46558a5
to
9babcd2
Compare
9babcd2
to
330f113
Compare
Merged
bfbe182
Compare
bfbe182
to
c5d49e1
Compare
4dba32a
to
9f28b25
Compare
b088d05
to
a93af70
Compare
18e8c28
to
f80d789
Compare
36ca865
to
acda2d1
Compare
DerEchtePilz
added a commit
that referenced
this pull request
May 12, 2024
+ fixed exception appearing in server log, this isn't done with VarHandles but I think because this is a hotfix, it is fine for now. I will handle all this properly on dev/commandapi-paper and #517
f9a99ef
to
c357912
Compare
a81dd6b
to
66db468
Compare
40805bc
to
8ea52a7
Compare
20daccf
to
62f3317
Compare
willkroboth
reviewed
Jun 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some thoughts. It looks like the docs PR has some catching up to do.
...notations/src/main/java/dev/jorel/commandapi/annotations/arguments/ADoubleRangeArgument.java
Outdated
Show resolved
Hide resolved
...mmandapi-paper/commandapi-paper-core/src/main/java/dev/jorel/commandapi/CommandAPIPaper.java
Outdated
Show resolved
Hide resolved
commandapi-core/src/main/java/dev/jorel/commandapi/CommandAPIVersionHandler.java
Show resolved
Hide resolved
...api-kotlin-paper/src/main/kotlin/dev/jorel/commandapi/kotlindsl/PaperCommandAPICommandDSL.kt
Outdated
Show resolved
Hide resolved
...dapi-paper-core/src/main/java/dev/jorel/commandapi/arguments/AsyncPlayerProfileArgument.java
Show resolved
Hide resolved
...mandapi-paper/commandapi-paper-plugin/src/main/java/dev/jorel/commandapi/CommandAPIMain.java
Show resolved
Hide resolved
commandapi-platforms/commandapi-paper/commandapi-paper-plugin/src/main/resources/config.yml
Outdated
Show resolved
Hide resolved
...ndapi-spigot/commandapi-spigot-core/src/main/java/dev/jorel/commandapi/CommandAPISpigot.java
Outdated
Show resolved
Hide resolved
...api-spigot-core/src/main/java/dev/jorel/commandapi/arguments/AsyncPlayerProfileArgument.java
Outdated
Show resolved
Hide resolved
…gument to be more inline with Paper
Needs more testing.
2469dd2
to
1772c26
Compare
c98e516
to
970491e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactors parts of the CommandAPI so the Adventure library and Bungee library aren't used in the same .jar's anymore and Paper API and Spigot API also aren't used together anymore.
In order to do that,
commandapi-bukkit-core
only serves as a tool to access NMS so it can be shared and doesn't have to be implemented again for Paper and Spigot.The new usable platforms are
commandapi-paper-(core/shade/plugin)
andcommandapi-spigot-(core/shade/plugin)
.This still requires a lot of work. I am fairly confident that these changes should already make a fairly functional CommandAPI for Paper and Spigot, however, there still is a lot of work left.
This should also invalidate #474 as this refactor puts them into different modules
TODO's:
PaperImplementations.java
CommandAPIBukkit
and implement inCommandAPIPaper
andCommandAPISpigot
respectively.commandapi-annotations
platform specific (Component related arguments)Update tests to useNope, cancelling those. The original tests are still present but they won't work. After trying to port tests two times I do not really know what to do so if someone else at some point, possibly after this is merged, has an idea this could and should be implemented.CommandAPIPaper
orCommandAPISpigot
. Maybe even both, share tests and implement component related arguments for both platformsminecraft
namespace exists for commands on Papercommandapi-paper-shade-mojang-mapped
)commandapi-paper-shade-mojang-mapped
)