Commit graph

46 commits

Author SHA1 Message Date
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
broccolai
2a4c29267c Use default descriptions and others 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
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
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
Alexander Söderberg
9276a919d3 Add keyed values to CommandContext and do some cleanup 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
b848070d57 Use an Object with fields instead of a Map for dependency versions 2021-01-16 08:54:07 +01:00
jmp
f1e467038c Rename vers to versions 2021-01-16 08:54:07 +01:00
jmp
2c188eb130 Convert build scripts to Kotlin
Also added some new tasks to only build/install to maven local certain platforms
`buildMinecraft`, `installMinecraft`, `buildDiscord`, `installDiscord`, `buildIRC`, `installIRC`
2021-01-16 08:54:07 +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
Alexander Söderberg
070a719165 Try to preserve command sender when getting Brigadier suggestions 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
118005978f Also expose the Brigadier manager from the VelocityCommandManager 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
Alexander Söderberg
d6ccc1d59b 🧹 Clean up the gradle build scripts a little
Changes:
- Move all dependency versions to a shared file
- Order the projects in settings.gradle
2020-10-24 19:52:44 +02:00
jmp
d86973f227 Add VelocityCommandPreprocessor 2020-10-24 19:52:44 +02:00
jmp
5ce9677cb4 Register new Velocity arguments with the parser registry 2020-10-24 19:52:44 +02:00
Alexander Söderberg
1249b74e83 📚 Add since annotations to new classes 2020-10-24 19:52:44 +02:00
allenclan23
8d69767c15 Added ServerArgument to Velocity 2020-10-24 19:52:44 +02:00
jmp
fba29041e6 🎨 Add caption for string "No input was provided" 2020-10-24 19:52:44 +02:00
Alexander Söderberg
edc5249244 Improve the velocity module 2020-10-24 19:52:44 +02:00
allenclan23
4de9946683 Fix an issue created by breaking changes in Velocity. CommandSource#sendMessage now requires an Identity 2020-10-16 08:00:01 +02:00
Alexander Söderberg
6ab1c8a2e0
Merge pull request #43
*  Add a new caption system to allow for the configuration of…

*  Add caption support to all numerical types

* Add more standard pasres to the registry

* Add default messages for captions

*  Improve captions in core

* Add captions for Bukkit

*  Add FactoryDelegatingCaptionRegistry.java
2020-10-12 18:13:23 +02:00
Alexander Söderberg
4777831ee6 🗑️ Get rid of JLine3 and clean up Velocity 2020-10-07 22:47:48 +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
4ca47777a3 Switch to gradle 2020-09-30 10:40:44 +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
7501bd4743
Version bump. 2020-09-22 18:58:43 +02:00
Alexander Söderberg
96fcd03a75
Attempt to fix maven thing again yes 2020-09-20 21:13:09 +02:00
Alexander Söderberg
ec3438c0f3
Revert parent version change. 2020-09-20 20:21:24 +02:00
Alexander Söderberg
d4b9d033dc
Version (de-)bump 2020-09-20 20:00:50 +02:00
Alexander Söderberg
6f0dba0bf0
Add asynchronous tab completion to the paper module 2020-09-20 19:49:25 +02:00
Alexander Söderberg
0ccf8d37e6
Fix some velocity related issues 2020-09-20 17:09:48 +02:00
Alexander Söderberg
1c831a3bcf
Add support for Commodore mappings 2020-09-20 16:44:30 +02:00
Alexander Söderberg
1fede2b4c0
Enable users to override exception handling and make the velocity test plugin less stupid 2020-09-19 16:38:58 +02:00
Alexander Söderberg
f1d4e7865d
Add Velocity module 2020-09-19 15:50:44 +02:00