Alexander Söderberg
0af788fa1d
🐛 Fix issue with permissions
...
Essentially, when there's an intermediary command and a child command with a variable leading argument, only the permission for the leading argument would be checked. In this case, that permission should only be considered if there's no more input. This fixes #46 .
2020-10-12 01:43:50 +02:00
jmp
454ceb318a
🐛 Only print flags once in command syntax
2020-10-11 17:46:28 +02:00
Alexander Söderberg
1f3c3f2bd9
✨ Add command argument preprocessors
2020-10-10 01:24:16 +02:00
Alexander Söderberg
fcd269b6e7
✨ Add String[] args
2020-10-09 20:44:17 +02:00
Alexander Söderberg
16623969ad
🧹 Clean up CommandManager
2020-10-09 20:02:28 +02:00
Alexander Söderberg
423b29ee3c
✨ Clean up StandardCommandSyntaxFormatter and make it easier to extend
2020-10-09 14:26:43 +02:00
Josh Taylor
fdb80b304c
✨ Rename methods ( #41 )
2020-10-09 13:30:08 +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
aa572e3533
🐛 Remove rogue print statement
2020-10-08 11:57:13 +02:00
Alexander Söderberg
c4abf4eca3
🐛 Fix float/double arguments
2020-10-07 23:40:48 +02:00
Alexander Söderberg
63dce244aa
🐛 Fix argument flags
2020-10-07 23:28:56 +02:00
jmp
1fa0eead69
✨ Pass manager instance to command builders
2020-10-07 23:11:37 +02:00
jmp
50dd6f0e85
✨ Register the Greedy string annotation mapper
2020-10-07 23:11:37 +02:00
Alexander Söderberg
2aac3980d5
♻️ Reformat + Update .editorconfig
2020-10-07 22:47:48 +02:00
broccolai
c2b1ec8a11
Make compound argumnets constructor public and fix code style issue
2020-10-06 20:55:48 +02:00
broccolai
caf1cc5b39
Add sender to compound argument mappers
2020-10-06 20:55:48 +02:00
Alexander Söderberg
aaa6386ca3
✨ Add a system for creating task chains
...
This will make it easier to use the asynchronous coordinator.
2020-10-06 20:55:34 +02:00
Alexander Söderberg
c3469706ab
✨ fix-commodore ( #27 )
2020-10-06 12:39:06 +02:00
jmp
b37706fd97
✨ Respect permissions in help queries
2020-10-05 22:44:37 +01:00
Alexander Söderberg
ec233fcc20
✨ Get rid of some annoying warnings
2020-10-05 16:27:26 +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
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
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
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
7f013124b2
🎨 @Annotation final -> final @Annotation
2020-10-03 21:40:07 +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
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
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
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
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
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