Commit graph

61 commits

Author SHA1 Message Date
Jason Penilla
32a756f033 Fix #387 2022-08-26 11:49:37 -07:00
Jason Penilla
6ba9afd6a3 Set forceExecutor true for Paper Brigadier 2022-08-26 11:49:37 -07:00
Alexander Söderberg
296539d56c chore(core): deprecate prefixed accessors/mutators in CommandManager (#377)
chore(core): deprecate prefixed accessors/mutators in CommandManager.java

All prefixed (actual) getters/setters in CommandManager have been deprecated, and non-prefixed alternatives have been introduced. I've also put some effort into improving the JavaDocs of these methods.
2022-06-18 22:52:58 -07:00
Citymonstret
89ec3fbf29 chore: make code style consistent 2022-06-18 22:52:58 -07:00
zml
63f2c9299f fabric: Support 1.19 (#356)
Co-authored-by: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
2022-06-18 22:52:58 -07:00
zml
ed7b7569a8 build: switch to spotless (#355)
* build: switch to spotless

add in some other basic formatting steps that allow for easy
auto-correction

* build: lint text files as well

* chore: remove license headers from package-info files

spotless can't verify these
2022-06-18 22:52:58 -07:00
Jason Penilla
708d11854e Fix import order 2021-12-02 02:04:43 -08:00
Jason
e109e639a1 core: Improvements to number arguments (#255) 2021-07-05 02:56:06 -07:00
Jason
c9ac39ed26 Update build scripts for Gradle 7 (#247)
* fabric: Update Loom to 0.7-SNAPSHOT

* Update to Gradle 7

Switch to CadixDev/licenser
The plugin we were using before does not support Gradle 7, and hasn't been updated in over a year.

* Remove `jcenter()` references

* Move to new JDA repo and bump version

* Use setup-java v2 and Adopt JDK 16 in gh actions

* build: Temporarily add Incendo repo for plugin resolution

Allows building until licenser has a new release

* Import indra plugin classes instead of string applies

* remove space

Co-authored-by: broccolai <me@broccol.ai>
2021-07-05 02:56:06 -07:00
jmp
09fac7734e brigadier: Use StringArgumentType.word() as fallback
`StringArgumentType.string()` is quoted mode.
2021-07-05 02:56:06 -07:00
jmp
ddf16373fb brigadier: add @since tags 2021-07-05 02:56:06 -07:00
jmp
65bb4d7a5d fabric: javadoc cleanup 2021-07-05 02:56:06 -07:00
jmp
488ea8f9d8 fabric: minor formatting/javadoc fixes 2021-07-05 02:56:06 -07:00
jmp
2659eac93b brigadier: Fix MappedArgumentParsers always mapping to string 2021-07-05 02:56:06 -07:00
jmp
f16cafda3f fix brigadier suggestions with the '/execute' command, fix running cloud commands with '/execute' on fabric 2021-07-05 02:56:06 -07:00
Zach Levis
5c7f2ffaab license headers 2021-07-05 02:56:06 -07:00
Zach Levis
6eae149089 brigadier: Unwrap mapped argument parsers 2021-07-05 02:56:06 -07:00
Zach Levis
98aea50d3c brigadier: Allow specifying a custom brigadier suggestions provider 2021-07-05 02:56:06 -07:00
Zach Levis
62caa2d641 brigadier: Add support for wrapped parsers 2021-07-05 02:56:06 -07:00
broccolai
d5259dfbe4 Add explict this checkstyle rule and fix violations 2021-07-05 02:56:06 -07:00
Alexander Söderberg
1600ef16c3
:clock: 2021 let's go!!! 2021-01-16 09:58:46 +01:00
Irmo van den Berge
b29d1ae5d1 Fix suggestions showing twice on spigot+brigadier
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2021-01-16 08:54:07 +01:00
Alexander Söderberg
c684c6607f Allow for literals to be combined with a variable arg(#181)
Co-authored-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2020-12-18 19:49:57 +01:00
Alexander Söderberg
2f077e03f3 Improve injection 2020-12-18 19:49:57 +01:00
Alexander Söderberg
070a719165 Try to preserve command sender when getting Brigadier suggestions 2020-12-07 20:05:45 +01:00
jmp
829c310872 Add a method to CloudBrigadierManager to enable/disable native suggestions for argument types 2020-12-07 20:05:45 +01:00
jmp
e4efffe577 📚 Update changelog 2020-12-07 20:05:45 +01:00
jmp
d0209dc762 Expose the Brigadier manager from Brigadier-enabled command managers 2020-12-07 20:05:45 +01:00
Alexander Söderberg
cfac2639ad Add errorprone and fix warnings/errors
The compiler will also treat all warnings as errors from now on.
2020-10-24 19:52:44 +02:00
jmp
c74ac64e5f 🐛 Fix optionals not being brig executors 2020-10-24 19:52:44 +02:00
Alexander Söderberg
06a34651bf
🐛 Fix brigadier suggestion building
An offset will be added pointing to the last occurrence of a blank space. This fixes incorrect tab completions for greedy strings
2020-10-13 19:53:01 +02:00
Alexander Söderberg
fcd269b6e7
Add String[] args 2020-10-09 20:44:17 +02:00
Jason
882154a6a8
🐛 Fix async completions (#38)
Co-authored-by: Alexander Söderberg <sauilitired@gmail.com>
2020-10-08 13:12:07 +02:00
Alexander Söderberg
2aac3980d5 ♻️ Reformat + Update .editorconfig 2020-10-07 22:47:48 +02:00
Josh Taylor
f1d4529276
Cleanup annotations and remove Cloud Brigs Pair (#32) 2020-10-06 12:40:35 +02:00
Alexander Söderberg
c3469706ab
fix-commodore (#27) 2020-10-06 12:39:06 +02:00
Alexander Söderberg
d6a2062069
Fix annotation order 2020-10-05 17:56:12 +02:00
Alexander Söderberg
a4544a8550
Prevent command arguments from being used in multiple commands
Also get rid of some random annoying warnings.
2020-10-05 16:17:18 +02:00
Alexander Söderberg
7f013124b2
🎨 @Annotation final -> final @Annotation 2020-10-03 21:40:07 +02:00
Alexander Söderberg
782f3023fc
Finalize command flags
They're currently quite ugly in the help menu. this should probably be fixed, but it's not a priority issue.
2020-10-02 21:08:31 +02:00
Alexander Söderberg
26f11e3a7e 🚚 More removal of javax annotations 2020-09-30 10:40:44 +02:00
Alexander Söderberg
e914d04450 Fix dependency graph and replace Guava 2020-09-30 10:40:44 +02:00
Alexander Söderberg
d85684c22a Fix merge conflicts 2020-09-28 20:42:18 +02:00
Alexander Söderberg
94710c5174 Initial support for compound arguments
This allows for grouping and mappings of multiple command arguments by using product types.
2020-09-28 20:42:18 +02:00
Alexander Söderberg
e033ee88db
Update LICENSE text 2020-09-27 23:30:13 +02:00
Alexander Söderberg
c74cda3a0f
🚚 Switch namespace 2020-09-27 23:04:15 +02:00
Alexander Söderberg
7036beb8ad 🐛 Fix command registration for Velocity
We need to recreate the Brigadier command node each time a command is extended, and the code was only letting each command get registered once.
2020-09-26 17:39:54 +02:00
Alexander Söderberg
e8a1a9a6cf Replace command permissions with a new smarter permission system that allows for compound permissions 2020-09-25 00:36:30 +02:00
Alexander Söderberg
1c831a3bcf
Add support for Commodore mappings 2020-09-20 16:44:30 +02:00
Alexander Söderberg
d83690cdcf
Hackily solve issue where Bukkit doesn't create a new Brigadier command per alias, so that command aliases get the full Brigadier treatment 2020-09-19 22:49:03 +02:00