191 Commits
Author SHA1 Message Date
Fortern 110c9d01cd release
(cherry picked from commit 161924a5931b64a94f6d13685f828f5be20199fb)
2024-08-13 03:35:22 +08:00
Fortern 6ce25e6370 Make sure arguments are preserved after redirects
https://github.com/Mojang/brigadier/pull/142
2024-08-13 03:33:01 +08:00
Fortern 8d48b13cdf Ensure that the CompletableFuture returned by getCompletionSuggestions is always completed
fix
https://github.com/Mojang/brigadier/pull/81
2024-08-13 03:28:27 +08:00
Fortern 48ab1ab497 Context-aware CommandNode#canUse method and Fix childless redirects
issue
https://github.com/Mojang/brigadier/issues/46
fix
https://github.com/PaperMC/velocity-brigadier/pull/1
https://github.com/PaperMC/velocity-brigadier/pull/2
2024-08-13 03:18:50 +08:00
Fortern 4c8d2abf45 Allow for multiple spaces between arguments
https://github.com/Mojang/brigadier/pull/136
2024-08-13 01:38:13 +08:00
Fortern d2e25c1bfe Add greedy charset option to string argument
https://github.com/Mojang/brigadier/pull/131
2024-08-13 01:38:12 +08:00
Fortern 7ceb01d4e5 update gradle 2024-08-13 01:22:53 +08:00
Gegy b5419b186e Add ArgumentType.parse() overload that can accept source context 2024-08-07 15:38:44 +02:00
Bartek BokandGitHub b92c420b2a Add utilities for running commands in stages (#140)
* Add more comprehensive test for context propagation in redirect

* Add tests for forking and exceptional execution

* Add test for redirect+execute nodes

* Cleanup some warnings from CommandDispatcherTest

* Remove leftover check (was needed when redirect was not cached)

* Refactor command execution loop and change "no command" behavior to not
depend on runtime

* Add utilities for running command chains manually

* Bump version
2023-10-09 15:42:10 +02:00
Liyan ZhaoandGitHub f20bede62a Fix wrong redirect behavior (MC-256419) (#124)
* Fix wrong redirect behavior

* Set foundCommand to `true` if redirect modifier returns no result.
2023-03-30 14:29:57 +02:00
parberge a3f3eb2929 Remove unused aws secrets 2023-03-28 11:33:33 +02:00
parberge 514387ba11 Remove the task to upload to AWS
We no longer use AWS so we shouldn't upload more stuff to it.
2023-03-27 08:48:41 +02:00
Petr Mrázek a6c4baa1b6 Correct the pr check workflow 2022-10-26 17:12:10 +02:00
BennyandGitHub b0f5818a59 Change azure blob storage (#117) 2022-10-26 16:59:13 +02:00
Petr MrázekandPetr Mrázek b411777f47 Remove travis-ci file 2022-10-26 16:55:22 +02:00
Petr Mrázek 0c9c87e4e6 Add PR check using GitHub Actions 2022-10-26 16:55:22 +02:00
Petr MrázekandPetr Mrázek 3c773a7188 Only publish on master 2022-10-19 10:55:57 +02:00
Petr MrázekandPetr Mrázek 06df81922f Implement ADO pipeline builds 2022-10-19 10:55:57 +02:00
slicedlime (Mikael Hedberg)andslicedlime (Mikael Hedberg) cf754c4ef6 Use rootian locale for case conversion. 2021-03-23 12:52:01 +01:00
slicedlime (Mikael Hedberg)andslicedlime (Mikael Hedberg) 60a94e529d Cache lowercase versions of inputs and literals to avoid repeated calls to toLowerCase().
Thank you to Spottedleaf.
2021-03-23 12:52:01 +01:00
242de3fe73 Don't sort children on node addition to save on performance (#68)
* Use a Tree Map for children to save on performance

Everytime a child is added to the CommandNode, the children was sorted.
This action is extremely heavy with large node trees such as Minecraft.

From what I can see, sort order was not even needed by type since
the dispatcher parse checks argument and literal nodes instead.

Testing on /bossbar command seemed to have no impact to behavior.

Credit to https://github.com/PaperMC/Paper/commit/dda9680be520bba8cc8b4a20072af42bd8420e7a

Co-authored-by: virustotalop <[email protected]>

* Restore back to a LinkedHashMap

since iteration order isn't important anyways.

Co-authored-by: virustotalop <[email protected]>
2021-03-18 15:36:43 +01:00
BeetMacolandslicedlime (Mikael Hedberg) 55f6e25c03 Correct README punctuation
Add two missing dots and remove space before exclamation mark
2021-03-18 15:08:34 +01:00
boqandNathan Adams 559d8f3972 Allow single quote in strings 2019-02-19 13:34:51 +01:00
Sleepy Flower GirlandNathan Adams 447845ba89 Fix very minor grammer mistakes
with changes
2018-10-14 14:51:58 -04:00
PROgrm_JARvisandNathan Adams 6eec4e50ac Update LICENSE formatting (#24) 2018-10-14 14:44:36 -04:00
DoNotSpamPlsandNathan Adams 8986ae2428 Upgrade Gradle to the latest version, small preparations for Gradle 5
Also upgraded dependencies in a non-breaking manner
2018-10-14 14:35:42 -04:00
PROgrm_JARvisandNathan Adams e527fec986 Make <Stars> clickable 2018-10-14 14:32:32 -04:00
Elias OjalaandNathan Adams 5a7ea58024 Make fork button clickable 2018-10-14 14:32:32 -04:00
MrMickyandNathan Adams 7ee589b29b Remove unnecessary Guava usages (#13) 2018-10-04 13:29:08 +02:00
Adam PoloczekandNathan Adams bcbd596c24 link shields respectively to the latest release and license file 2018-10-02 17:54:48 +02:00
Leon LinhartandNathan Adams d156febab6 Make gradlew executable 2018-10-02 17:54:19 +02:00
Leon LinhartandNathan Adams 9d8019b407 Add travis CI configuration 2018-10-02 17:54:19 +02:00
PROgrm_JARvisandNathan Adams d3cb749c4b Add shields (from shields.io) to README.md (#12) 2018-10-02 11:54:25 +02:00
EarthcomputerandNathan Adams e60b24f36b Fix long argument examples 2018-09-28 14:04:53 +02:00
boqandNathan Adams bbfb8a7da1 Remove unused generic 2018-09-26 20:43:26 +02:00
boqandNathan Adams 107b852c74 Implement calculation of suggestions for any text position 2018-09-26 20:43:26 +02:00
EarthcomputerandNathan Adams b10b4479e2 Add string reader long tests 2018-09-26 20:43:13 +02:00
EarthcomputerandNathan Adams 88714288a7 Add long argument 2018-09-26 20:43:13 +02:00
TheIntelloBoXandNathan Adams 6a15305c3d Update README.md (#9) 2018-09-26 20:42:33 +02:00
Nathan Adams 8e9859e471 Added javadoc to CommandDispatcher 2018-09-26 10:42:35 +02:00
Nathan Adams 1fe283c136 Added readme 2018-09-26 10:42:35 +02:00
Nathan Adams 189c7d0433 Add MIT license 2018-09-26 10:42:35 +02:00
Nathan Adams 872658c737 Add copyright to all code 2018-09-26 10:42:35 +02:00
boqandErik Broes 019c0e3727 Pass StringReader instead of strings to CommandDispatcher 2018-07-24 14:52:17 +02:00
Nathan AdamsandErik Broes 4dca222938 Don't publish .md5 files 2018-07-24 14:49:11 +02:00
Nathan AdamsandFry 235f0c9b28 Use env.AWS_ROLE_ARN for publishing 2018-07-02 12:55:47 +02:00
Nathan AdamsandSeargeDP 1ecf0558a0 Upload to S3 if -PbuildNumber is set, otherwise version is foo.0-SNAPSHOT published to local maven repo 2018-06-29 13:03:44 +02:00
Bartek BokandGitHub 805c001658 Merge pull request #2 from Mojang/translatable_exceptions
Changed exceptions to Messages, to allow translations via library holders (ie minecraft game)
2018-05-30 14:20:09 +02:00
Nathan Adams 631096e871 Changed exceptions to Messages, to allow translations via library holders (ie minecraft game) 2018-05-30 12:45:07 +02:00
SeargeandNathan Adams 46a0d3be41 Version 0.1.25 2018-05-02 15:06:33 +02:00