Commit graph

549 commits

Author SHA1 Message Date
Alexander Söderberg
b564ecf60d
Allow command context to be retrieved using argument instances 2020-10-05 16:06:15 +02:00
Alexander Söderberg
2067eac600
Show command argument name in flag syntax hint 2020-10-05 15:43:06 +02:00
jmp
80988ec986 Throw an IllegalStateException when trying to register async completions on an unsupported server 2020-10-04 21:59:14 +02:00
Alexander Söderberg
5a89f98a25
🐛 Fix BukkitCommandManager capability calculations 2020-10-04 21:18:16 +02:00
Alexander Söderberg
38aff56e92
🐛 Fix build script 2020-10-04 21:02:54 +02:00
Alexander Söderberg
15dd3abbbb
Version bump. Publish to Sonatype snapshots and fix build script. 2020-10-04 20:51:48 +02:00
Alexander Söderberg
c84e906dc8
🐛 Add missing line break 2020-10-04 19:23:37 +02:00
Alexander Söderberg
50e510e141
Improve syntax hinting for flags 2020-10-04 19:22:46 +02:00
Alexander Söderberg
f7bc31df27
🐛 Fix issues with intermediary command help 2020-10-04 18:54:56 +02:00
Alexander Söderberg
22993a46d7
Improve Bukkit conflict management
Conflicting commands will now obey plugin load order. Brigadier aliases will be created for namespaced aliases. No asynchronous completions will be provided for conflicting commands and will only be provided for the namespaced label. Furthermore, error handling the command tree has been improved and the methods now return a pair, rather than an optional. This means that there's no need to catch and unwrap exceptions and they will be forwarded in the correct form.
2020-10-04 18:32:34 +02:00
Alexander Söderberg
8eaf0ac772
📝 Reflect recent changes in the README 2020-10-04 13:52:14 +02:00
Alexander Söderberg
0fefd40812
🎨 Create separate annotation for command permissions
This allows for compound annotation creation. Though this will need additional changes made to the annotation parser to actually take effect.
2020-10-04 13:52:13 +02:00
jmp
a8b2b9a608 Expose input string from EntitySelectors 2020-10-04 13:48:57 +02:00
jmp
4c178fc9cd 🖌️ Small codestyle fix 2020-10-03 22:45:10 +02:00
Alexander Söderberg
eb07fd1a2f
🎨 Remove StaticArgument#Optional
Not needed with the introduction of the flag system. This closes #15.
2020-10-03 22:44:36 +02:00
Alexander Söderberg
a2670722e7
🗑️ Remove plugin test modules 2020-10-03 21:46:22 +02:00
Alexander Söderberg
7f013124b2
🎨 @Annotation final -> final @Annotation 2020-10-03 21:40:07 +02:00
Alexander Söderberg
a6b98ca278 🎨 Some codestyle fixes 2020-10-03 21:35:16 +02:00
jmp
9a35a873c0 Add entity selector arguments (@p, @e, @r, etc.) for Bukkit and register with the PaperBrigadierListener. 2020-10-03 21:35:16 +02:00
Alexander Söderberg
b94075833d
🐛 Fix merge issue 2020-10-02 21:09:17 +02:00
Alexander Söderberg
c67619e5da
Add flag support to the annotation system. 2020-10-02 21:08:32 +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
549fbd1d1d
Begin working on the flag system 2020-10-02 20:57:36 +02:00
broccolai
7bd0af0fef Update .gitignore to ignore gradle paths instead of maven 2020-10-02 19:55:11 +02:00
broccolai
0655a731d6 Fix checkstyle issues 2020-10-02 02:54:21 +02:00
Alexander Söderberg
1c56be714c Reduce builder noise. 2020-10-02 02:54:21 +02:00
Alexander Söderberg
ab9860352c
Borrow some stuff from sewer 2020-10-01 15:53:28 +02:00
Alexander Söderberg
a43c3e9145
Fix build scripts and prepare Maven publishing 2020-10-01 15:41:47 +02:00
Alexander Söderberg
9d47a7c82d
🎨 Change (improve) command context semantics 2020-10-01 13:24:15 +02:00
Alexander Söderberg
ee59066733
🎨 required-> of 2020-10-01 13:20:29 +02:00
Alexander Söderberg
8d60348533
🎃 2020-10-01 12:06:25 +02:00
Alexander Söderberg
7013a851c4
🎃 2020-10-01 12:05:20 +02:00
Alexander Söderberg
cf0947ab81
💩 Use BukkitAudiences#player because gradle refuses to resolve #sender. 2020-09-30 10:59:23 +02:00
Alexander Söderberg
144ac02778
🐛 Fix merge conflict 2020-09-30 10:49:09 +02:00
Jason
09e3e7aa13
Add exception messages so invalid input doesn't result in 'Invalid Command Argument: null' (#13)
Co-authored-by: Alexander Söderberg <Sauilitired@users.noreply.github.com>
2020-09-30 10:44:07 +02:00
Alexander Söderberg
bea9c54841 🐛 Fix issue with TypeToken in the service pipeline 2020-09-30 10:40:44 +02:00
Alexander Söderberg
0fbe1fe6a2 🚚 Finalize annotation transition 2020-09-30 10:40:44 +02:00
Alexander Söderberg
f7c00244e7 Some small changes 2020-09-30 10:40:44 +02:00
Alexander Söderberg
26f11e3a7e 🚚 More removal of javax annotations 2020-09-30 10:40:44 +02:00
Alexander Söderberg
4556b392b0 🚚 More removal of javax annotations 2020-09-30 10:40:44 +02:00
Alexander Söderberg
9f0c846050 🚚 Begin migrating from javax annotations to checker-qual 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
4ca47777a3 Switch to gradle 2020-09-30 10:40:44 +02:00
broccolai
05dcd52659
Fix Bukkit-Test compilation after adventure update 2020-09-29 14:39:31 +00:00
broccolai
7b19e7e8ba
Fix typo in cloud-cloudburst 2020-09-29 03:17:08 +00:00
broccolai
e277237db3 Final touches on new arguments 2020-09-28 20:44:13 +02:00
broccolai
5c7d0bda1e Update arguments 2020-09-28 20:44:13 +02:00
broccolai
c7119dc115 Add player arguments 2020-09-28 20:44:13 +02:00
broccolai
bc064e1873 Add UUID argument 2020-09-28 20:44:13 +02:00
broccolai
8e2ac13ad5 Allow mappers to throw RuntimeExceptions and make ArgumentPair/Turple extensible 2020-09-28 20:42:18 +02:00