Jason Penilla
3d2d850533
Update MinecraftArgumentTypes util for 1.18.2
2022-02-28 13:57:35 -07:00
Jason Penilla
5fb18ddc6e
Update BlockPredicateArgument for 1.18.2
2022-02-28 13:57:35 -07:00
Jason Penilla
708d11854e
Fix import order
2021-12-02 02:04:43 -08:00
Jason Penilla
dd4f67ad2e
undo intellij auto format
2021-12-02 02:04:43 -08:00
Jason Penilla
a22d9e0100
Remove redundant Function
2021-12-02 02:04:43 -08:00
Jason Penilla
c473e9674a
Fixup duplicated field
2021-12-02 02:04:43 -08:00
Jason Penilla
66c803852c
Update CraftBukkit reflection for 1.18
2021-12-02 02:04:43 -08:00
Jason Penilla
9c804addbd
bukkit: Use name from root argument for consistency with rest of BukkitCommand
...
shouldn't actually make any difference
2021-12-02 02:04:43 -08:00
Jason Penilla
8399bce8d2
bukkit: Use command name instead of label to get node
2021-12-02 02:04:43 -08:00
Jason Penilla
cf05494fae
Fix annotations
2021-12-02 02:04:43 -08:00
Jason Penilla
e5acfb2414
bukkit: Fix usage string and permission checking for Bukkit help menu
2021-12-02 02:04:43 -08:00
Jason Penilla
b4492e9bc5
Fix Brigadier suggestions for KeyedWorldArgument
2021-12-02 02:04:43 -08:00
Jason Penilla
3b2f2edb60
bukkit: Improve failure handling in EnchantmentArgument
2021-12-02 02:04:43 -08:00
Jason Penilla
f7b7b93251
Various minor cleanup
2021-07-05 02:56:06 -07:00
Jason Penilla
ab0a9299e4
bukkit: Check class presence for CloudBukkitCapabilities instead of using Minecraft version
2021-07-05 02:56:06 -07:00
Jason Penilla
b163dce3c1
bukkit: Fix typo in MinecraftArgumentTypes
2021-07-05 02:56:06 -07:00
Jason
04e697cca6
bukkit: Update Minecraft Brigadier argument types to work on Mojang-mapped servers ( #267 )
2021-07-05 02:56:06 -07:00
Shane Freeder
db2c3f1724
Support running on a mojmap'd paper server
2021-07-05 02:56:06 -07:00
Jason Penilla
e4bc67e906
bukkit: Use correct constructor for Brigadier Vec2 argument type
2021-07-05 02:56:06 -07:00
Jason Penilla
4312062e82
Fix checkstyle violation
2021-07-05 02:56:06 -07:00
Jason Penilla
123341563d
bukkit: Update for Minecraft 1.17
2021-07-05 02:56:06 -07:00
Jason
7da05da323
bukkit: Implement ItemStack and Block predicate arguments ( #259 )
2021-07-05 02:56:06 -07:00
jmp
99040ca68a
bukkit: Use WrappedBrigadierParser for modern ItemStack suggestions
2021-07-05 02:56:06 -07:00
jmp
56f8b58489
bukkit: Only suggest items for ItemStackArgument
2021-07-05 02:56:06 -07:00
Jason
e3cc7d43cb
bukkit: Implement ItemStackArgument ( #257 )
...
Fully featured on 1.13+, falls back to Material parser on legacy versions.
Also some general cleanup to the Bukkit impl
2021-07-05 02:56:06 -07: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
0722bf6ead
bukkit/paper/velocity: Add convenience methods for constructing command managers using native platform sender types
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
jmp
956700b310
Remove unused imports
2021-07-05 02:56:06 -07:00
jmp
58f49033ce
Use Command instead of TabCompleteEvent on Bukkit
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
Zach Levis
78b081ccc2
core: Allow attaching a default description to arguments
2021-01-16 08:54:07 +01:00
Jason
fcae5b8637
Add Location2DArgument, mapped to NMS Vec2I ( #201 )
2021-01-16 08:54:07 +01:00
jmp
8913b2495e
🐛 Transition to AFTER_REGISTRATION even when no commands have been registered
2021-01-16 08:54:07 +01:00
jmp
d812ea633a
🐛 Fix suggestions in console (Bukkit/Paper)
2021-01-16 08:54:07 +01:00
Alexander Söderberg
e5a35afb8a
✨ Add @Parser annotated methods
...
Fixes #166 . Also fixes #180 .
2020-12-18 19:49:57 +01:00
zml
1e91273e0e
✨ Work towards making CommandMeta typesafe ( #173 )
...
Co-authored-by: Alexander Söderberg <sauilitired@gmail.com>
2020-12-18 19:49:57 +01:00
Alexander Söderberg
2f077e03f3
✨ Improve injection
2020-12-18 19:49:57 +01:00
broccolai
237eda75ef
Reformat project
2020-12-07 20:05:45 +01:00
jmp
01d36aecd8
🐛 Fix Commodore registration on Bukkit
2020-12-07 20:05:45 +01:00
jmp
77225274ce
✨ Improve Bukkit command registration logic
...
When a new command is registered, if a command with that name already exists, Bukkit will not register the new command, ie the existing command gets priority.
However, if the already existing command is an alias, it will replaced by the new command.
These changes update cloud to be aware whether or not an existing command is an alias, and that if so, that Bukkit will allow us to have priority for this command.
2020-12-07 20:05:45 +01:00
Alexander Söderberg
070a719165
✨ Try to preserve command sender when getting Brigadier suggestions
2020-12-07 20:05:45 +01:00
jmp
ded94567c6
✨ Add a ManagerSetting to override existing commands
2020-12-07 20:05:45 +01:00
zml
013d2d61f4
✨ Give CommandManager a registration state ( #148 )
...
* Make CommandManager track its availability for registration
This prevents situations where changes to the manager
would result in undefined state in other places.
* Add unsafe registration capability
* Very minor formatting + `@since` tags
* Add changes to changelog
Co-authored-by: Alexander Söderberg <sauilitired@gmail.com>
2020-12-07 20:05:45 +01:00
jmp
7df6917fe4
✨ Added CommandExecutionException which wraps any exception thrown during the execution of command handlers. Should be handled using CommandManager#registerExceptionHandler, similar to NoSuchCommandException, ArgumentParseException, etc.
2020-12-07 20:05:45 +01:00
jmp
2f0ded5be6
🐛 Fix registration of command aliases on Bukkit when using Brigadier
2020-12-07 20:05:45 +01:00
jmp
dbdafed273
🐛 Fix Bukkit alias command suggestions without Brigadier
2020-12-07 20:05:45 +01:00
jmp
e6af4e6caa
✨ Add a method to get the failure reason of SelectorParseExceptions
2020-12-07 20:05:45 +01:00
jmp
118005978f
✨ Also expose the Brigadier manager from the VelocityCommandManager
2020-12-07 20:05:45 +01:00