Commit graph

834 commits

Author SHA1 Message Date
Josh Taylor
fdb80b304c
Rename methods (#41) 2020-10-09 13:30:08 +02:00
Josh Taylor
8ebb248a47
JDA improvements (#39) 2020-10-09 13:29:47 +02:00
Alexander Söderberg
3763eb40d4
Make MaterialArgument's error message less annoying 2020-10-08 13:26:23 +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
2bad5759c6 🐛 Actually fix double namespaced commands 2020-10-07 23:11:37 +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
jmp
eabdfe4243 🐛 Fix double namespaced commands on Bukkit without Brigadier 2020-10-07 23:11:37 +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
Alexander Söderberg
8bdec87a74
Add cloud-tasks build file 2020-10-06 21:18:19 +02:00
broccolai
1080b1a2f0 Update example plugin for new compound argument mapper 2020-10-06 20:55: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
8e52bf705c
Add example-bukkit build file 2020-10-06 20:52:51 +02:00
jmp
0caaccb7de 🐛 Also register namespaced commands with Commodore 2020-10-06 20:04:34 +02:00
jmp
d5461d104f 🎨 Move Brig mappings to a common class for Paper and Commodore 2020-10-06 20:04:16 +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
broccolai
8f8f98b189 Update README's 2020-10-05 23:40:32 +01:00
JarFiles
8217290975 Update README.md
Update README for the new implementations
2020-10-05 23:40:32 +01:00
jmp
b37706fd97 Respect permissions in help queries 2020-10-05 22:44:37 +01:00
JarFiles
7fee9546e5 Update Permission Mapper + added default discord permissions
The permission mapper now does what it was supposed to do and now has support for discord's default permissions
2020-10-05 22:43:47 +01:00
JarFiles
90940fafd7 Fixed Code Style issues 2020-10-05 22:43:25 +01:00
JarFiles
e5f9b3d8ca Create custom mapper for permissions
Adds the possibility to specify a custom mapper for command permissions (e.G. for permissions in private messages or if you just don't want to use discord's built-in permission system)
2020-10-05 22:43:25 +01:00
Alexander Söderberg
d6a2062069
Fix annotation order 2020-10-05 17:56:12 +02:00
JarFiles
72e578ff22
Add Javacord Support (#23)
Co-authored-by: Alexander Söderberg <Sauilitired@users.noreply.github.com>
2020-10-05 17:51:41 +02:00
broccolai
212145cc6b Add JDA implementation 2020-10-05 17:48:47 +02:00
Alexander Söderberg
cd274fd032
📚 Add JavaDoc link 2020-10-05 17:45:33 +02: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
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