Commit graph

69 commits

Author SHA1 Message Date
Jason
99d388b708 Deprecate argument newBuilder methods and add builder methods to align with newer arguments (#419) 2022-12-13 11:13:00 -07:00
Jason Penilla
771e723224 Update testing Paper 2022-12-13 11:13:00 -07:00
zml
59c5a8310c build: update build-time dependencies, address new warnings (#413)
* build: update build-time dependencies, address new warnings

* build: switch to central repo declaration, remove redundant repositories

* build: use spotless predeclaration, more task avoidance on kotlin modules
2022-12-13 11:13:00 -07:00
Jason Penilla
7897159a1c Update license in examples 2022-12-13 11:13:00 -07:00
Jason Penilla
3fc62ce358 build: Replace custom runVelocity task with run-velocity plugin, use run-waterfall in bungee example, update run-paper
also attach example build tasks to `assemble` instead of `build`
2022-12-13 11:13:00 -07:00
Jason Penilla
20087b357f Bump testing Paper version 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
Jason
c250aa642f bukkit/paper: Add NamespacedKeyArgument (#376) 2022-06-18 22:52:58 -07:00
Alexander Söderberg
2572b73c4b feat(bukkit/paper): add root command deletion support (#371) 2022-06-18 22:52:58 -07:00
Alexander Söderberg
28ff5d3003 feat(core): support root command deletion & standardize capabilities (#369) 2022-06-18 22:52:58 -07:00
Alexander Söderberg
74fd40f403 feat(annotations): add @CommandMethod annotation processing (#366)
We now verify the following at compile time:
- That `@CommandMethod` annotated methods are non-static (error)
- That `@CommandMethod` annotated methods are public (warning)
- That the `@CommandMethod` syntax and specified `@Argument`s match
- That no optional argument precedes a required argument
2022-06-18 22:52:58 -07:00
Alexander Söderberg
f1582fb64e feat(annotations): add command containers (#364)
This is the first part of the introduction of annotation processing to cloud. A new `@CommandContainer` annotation has been introduced, which can be placed on classes to have the annotation parser automatically construct & parse the classes when `AnnotationParser.parseContainers()` is invoked.

A future PR will introduce another processor that will scan for `@CommandMethod` annotations and verify the integrity of the annotated methods (visibility, argument annotations, etc.).
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
eae247954f build and publishing updates 2022-06-18 22:52:58 -07:00
Jason Penilla
33c51967e2 build updates 2022-02-28 13:57:35 -07:00
Jason Penilla
7421418ffd build changes
Update sponge repo

Update shadow

Reorder repos

Bump various dependencies

further repo adjustments

temporarily comment out sponge7 module so we can build

Revert "temporarily comment out sponge7 module so we can build"

This reverts commit 396921ae71ace17f7e545f0fbfe2687ba3337007.

Use temporary repo for sponge

restore sponge repo

update adventure platform
2021-12-18 04:12:42 -08:00
Jason Penilla
708d11854e Fix import order 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
f43386d29b Update Adventure 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
ac77c85722 bukkit: Test with 1.17.1 2021-12-02 02:04:43 -08:00
Jason Penilla
54f281abe7 build: Remove unused extension 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
c4966c2b80 bukkit: Add run tasks for testing legacy versions 2021-07-05 02:56:06 -07:00
Jason Penilla
2a9a32aafe bukkit: Switch to release version of run-paper and update config for Paper 1.17 2021-07-05 02:56:06 -07:00
Jason Penilla
fb48a3c8af build: Update Gradle and plugins, small cleanup to build scripts 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
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
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
Alexander Söderberg
0b6a554946 Implement predicate permissions (#210)
Co-authored-by: Josh Taylor <me@broccol.ai>
2021-01-16 08:54:07 +01:00
Zach Levis
b38c725dc5 core: Use the ArgumentDescription interface for descriptions
This allows minecraft-extras to provide an implementation that
uses Adventure chat components to represent the description.
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
Alexander Söderberg
c48eb28434 🐛 Fix issues with the help system 2020-12-18 19:49:57 +01:00
Alexander Söderberg
97e447739c 🎨 Update example plugins to the new meta format 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
broccolai
d656c99601 Move all 1.2.0-SNAPSHOT references to 1.2.0 2020-12-07 20:05:45 +01:00
broccolai
237eda75ef Reformat project 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
81e53ed454 🚀 Version bump 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
79aefb05b5 Add LocationArgument to cloud-bukkit (#63)
*  Add LocationArgument to cloud-bukkit

* 🎨 Use the Bukkit CommandSender from the command context in LocationArgument

* 🐛 Fixed quoted parsing in StringArgument

* 📚 Fix code style

Co-authored-by: jmp <jasonpenilla2@me.com>
2020-10-24 19:52:44 +02:00
jmp
c7c286eb7a Update TextColorArgument with captions 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
366c4f2ce5 Add an adventure text colour parser 2020-10-24 19:52:44 +02:00