Commit graph

428 commits

Author SHA1 Message Date
jmp
9bfb0f17d6 Use the correct failure reason for quoted StringArguments 2020-10-19 10:03:56 +02:00
Alexander Söderberg
6c63b47e5e
🐛 Fix multiple chained optionals not working correctly (#73)
* 🐛 Fix multiple chained optionals not working correctly

There is a problem where the child arguments never forwarded their commands correctly. This will now fix itself when necessary.

* 📚 Add CHANGELOG entry for change
2020-10-18 21:36:58 +02:00
Alexander Söderberg
d6cdeca1c3 📚 Improve the Bukkit and PaperCommandManager documentation 2020-10-17 19:03:52 +02:00
Alexander Söderberg
de0666aa73 📚 Improve the CommandManager documentation 2020-10-17 19:03:52 +02:00
jmp
460040b39c 📚 Fix readme code examples 2020-10-16 23:39:14 +02:00
Alexander Söderberg
9f642dec9b
📚 Update gradle.yml (#61) 2020-10-16 22:33:14 +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
42d56a4bbe
📚 Update README to account for org switch 2020-10-15 21:19:21 +02:00
JarFiles
7fd7c89882
Merge pull request #48 from Sauilitired/example-javacord
Add Example Javacord Implementation
2020-10-14 13:15:37 +02:00
Alexander Söderberg
55b0a66633
📚 Add Maven central version badge to README 2020-10-14 12:29:38 +02:00
Alexander Söderberg
d1498cc567
📚 Update CHANGELOG with adventure change 2020-10-14 12:15:39 +02:00
jmp
6f0940ebd4
📦 Update minecraft-extras for Adventure 4.0.0 2020-10-14 12:11:25 +02:00
Alexander Söderberg
79bb017fd3
🔖 Version bump 2020-10-14 12:11:19 +02:00
Alexander Söderberg
3456112cb1 Add CHANGELOG.md 2020-10-14 12:06:48 +02:00
Alexander Söderberg
810fcc4b6b
📚 Add project listing to README 2020-10-14 04:46:12 +02:00
jmp
53f112795b 📚 Update README 2020-10-13 17:44:43 -07:00
Alexander Söderberg
f669e93be5
🚀 Version bump. 2020-10-14 01:34:32 +02:00
Alexander Söderberg
fd0658d320
🐛 Fix number suggestions. Again. 2020-10-14 01:07:56 +02:00
jmp
15526c95ed 🐛 Make number argument suggestions respect minimum 2020-10-13 13:38:12 -07:00
Julian Staudt
57169f070f Finally got the dependencies working 2020-10-13 22:02:51 +02:00
jmp
78796255a2 Only suggest each flag one time 2020-10-13 20:26:39 +02:00
Alexander Söderberg
06a34651bf
🐛 Fix brigadier suggestion building
An offset will be added pointing to the last occurrence of a blank space. This fixes incorrect tab completions for greedy strings
2020-10-13 19:53:01 +02:00
Julian Staudt
2d937f1a38 Fixed Dependencies 2020-10-13 18:01:11 +02:00
Julian Staudt
484dc0435f Add Example Javacord Implementation 2020-10-13 17:27:29 +02:00
jmp
5f466fcbc0 Fix parsing of flag arguments that start with '-', i.e. a negative integer, add captions for flag argument 2020-10-13 15:07:40 +02:00
jmp
2fbd90dfee 🐛 Register permissions with Bukkit so commands aren't suggested to players without permission when Brigadier is not used 2020-10-12 13:33:07 -07:00
Alexander Söderberg
1bc2af8eed
🐛 Fix duplicate caption key names 2020-10-12 18:42:27 +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
jmp
378d57964f 🐛 Override build in Material and Enchant arguments 2020-10-11 21:19:32 -07:00
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
674507fea6 Add pagination to MinecraftHelp, move minecraft-extras to it's own package 2020-10-11 17:46:28 +02:00
jmp
454ceb318a 🐛 Only print flags once in command syntax 2020-10-11 17:46:28 +02:00
Alexander Söderberg
319b367434
📚 Update README 2020-10-11 17:34:09 +02:00
PiggyPiglet
9c32a91047 fix typo in sentence
no, this isn't for hacktoberfest, i'm not that petty, it just annoyed me.
2020-10-11 03:09:57 +01:00
jmp
7e09351cf1 Add highlighting to invalid syntax exception 2020-10-10 01:37:17 +02:00
jmp
c3d679d5ec Implement EnchantmentArgument, remove inaccurate brig mappings. 2020-10-10 01:37:17 +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
4368305bc9
Add adventure-based exception handlers to cloud-minecraft-extras 2020-10-09 15:07:41 +02:00
Alexander Söderberg
423b29ee3c
Clean up StandardCommandSyntaxFormatter and make it easier to extend 2020-10-09 14:26:43 +02:00
jmp
70818bb4b2 🎨 Show less useless info in MinecraftHelp 2020-10-09 13:37:01 +02:00
jmp
decde5cc77 Add message provider function to MinecraftHelp 2020-10-09 13:37:01 +02:00
jmp
29740aa780 🎨 Make MinecraftHelp use Component builders instead of MiniMessage, add a configurable Color pallet 2020-10-09 13:37:01 +02:00
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