Commit graph

209 commits

Author SHA1 Message Date
jmp
653503f375 fabric: only strip the starting '/' from input when it is actually there 2021-07-05 02:56:06 -07:00
jmp
96e08ab2ef fabric: register forwards mapper with the BrigadierManager
fixes CommandSourceStack#getServer being null during permission checks for arguments with custom suggestions
2021-07-05 02:56:06 -07:00
jmp
149ffffe8e fabric: check permissions using fabric-permissions-api 2021-07-05 02:56:06 -07:00
jmp
c01445dd1e fabric: update loom to 0.6-SNAPSHOT 2021-07-05 02:56:06 -07:00
Zach Levis
5c7f2ffaab license headers 2021-07-05 02:56:06 -07:00
Zach Levis
67a36d81e0 fabric: More work 2021-07-05 02:56:06 -07:00
Zach Levis
3f67a1ae04 fabric: work 2021-07-05 02:56:06 -07:00
Zach Levis
6eae149089 brigadier: Unwrap mapped argument parsers 2021-07-05 02:56:06 -07:00
Zach Levis
52c0796539 More parser work 2021-07-05 02:56:06 -07:00
Zach Levis
91b433c14b fabric: Fully implement a registry entry argument type 2021-07-05 02:56:06 -07:00
Zach Levis
98aea50d3c brigadier: Allow specifying a custom brigadier suggestions provider 2021-07-05 02:56:06 -07:00
Zach Levis
0af44e2406 fabric: Add builders for many of the basic argument types 2021-07-05 02:56:06 -07:00
Zach Levis
48181164b0 fabric: Split out server-specific command manager to allow for client commands 2021-07-05 02:56:06 -07:00
Zach Levis
3be50956cc fabric: Begin adding support for some wrapped vanilla arguments 2021-07-05 02:56:06 -07:00
Zach Levis
62caa2d641 brigadier: Add support for wrapped parsers 2021-07-05 02:56:06 -07:00
Zach Levis
79006ac40f fabric: Add registration environment meta 2021-07-05 02:56:06 -07:00
Zach Levis
dc90551168 fabric: Use stateful command manager 2021-07-05 02:56:06 -07:00
Zach Levis
eef98da9c9 fabric: Begin work on commands manager for platform 2021-07-05 02:56:06 -07:00
jmp
0722bf6ead bukkit/paper/velocity: Add convenience methods for constructing command managers using native platform sender types 2021-07-05 02:56:06 -07:00
jmp
5d460e9f3a minecraft-extras: Add AudienceProvider.nativeAudience and MinecraftHelp.createNative convenience methods for sender types which are Audiences. 2021-07-05 02:56:06 -07:00
Frank van der Heijden
ffa17b001b Apply .trim() before .isEmpty() check to prevent 0-length splits 2021-07-05 02:56:06 -07:00
broccolai
d5259dfbe4 Add explict this checkstyle rule and fix violations 2021-07-05 02:56:06 -07:00
jmp
956700b310 Remove unused imports 2021-07-05 02:56:06 -07:00
jmp
21fa35a9fc Bump version to 1.5.0-SNAPSHOT 2021-07-05 02:56:06 -07:00
jmp
58f49033ce Use Command instead of TabCompleteEvent on Bukkit 2021-07-05 02:56:06 -07:00
Alexander Söderberg
1600ef16c3
:clock: 2021 let's go!!! 2021-01-16 09:58:46 +01:00
Alexander Söderberg
3454cbe4da 🚀 1.4.0 release 2021-01-16 08:54:07 +01:00
zml
5dd925a8d1 sponge7: Implement basic command manager for SpongeAPI 7 (#212) 2021-01-16 08:54:07 +01:00
Zach Levis
78b081ccc2 core: Allow attaching a default description to arguments 2021-01-16 08:54:07 +01:00
Zach Levis
b38c725dc5 core: Use the ArgumentDescription interface for descriptions
This allows minecraft-extras to provide an implementation that
uses Adventure chat components to represent the description.
2021-01-16 08:54:07 +01:00
zml
a6f8159410 Expand ability to use Adventure Components in exceptions and metadata (#200)
* cloud-minecraft: Support preserving component error messages

Any exception thrown by an argument parser that is a
ComponentMessageThrowable will now have its component message directly
queried.

* minecraft-extras: Add Component-based description handling for help

* Apply review comments
2021-01-16 08:54:07 +01:00
jmp
12f5c71504 Add missing inputQueue.remove() to TextColorArgument 2021-01-16 08:54:07 +01:00
Jason
fcae5b8637 Add Location2DArgument, mapped to NMS Vec2I (#201) 2021-01-16 08:54:07 +01:00
Alexander Söderberg
9276a919d3 Add keyed values to CommandContext and do some cleanup 2021-01-16 08:54:07 +01:00
Jason
c8fdf22f4b Allow for more easily using translatable components with MinecraftHelp (#197)
*  Allow for more easily using translatable components with MinecraftHelp

* Add missing Javadoc
2021-01-16 08:54:07 +01:00
jmp
8913b2495e 🐛 Transition to AFTER_REGISTRATION even when no commands have been registered 2021-01-16 08:54:07 +01:00
jmp
b848070d57 Use an Object with fields instead of a Map for dependency versions 2021-01-16 08:54:07 +01:00
jmp
f1e467038c Rename vers to versions 2021-01-16 08:54:07 +01:00
jmp
2c188eb130 Convert build scripts to Kotlin
Also added some new tasks to only build/install to maven local certain platforms
`buildMinecraft`, `installMinecraft`, `buildDiscord`, `installDiscord`, `buildIRC`, `installIRC`
2021-01-16 08:54:07 +01:00
jmp
d812ea633a 🐛 Fix suggestions in console (Bukkit/Paper) 2021-01-16 08:54:07 +01:00
jmp
23c0ad77f9 ⬆️ Bump version to 1.4.0-SNAPSHOT 2021-01-16 08:54:07 +01:00
jmp
f7765d8fe9 Minor formatting changes to MinecraftHelp 2021-01-16 08:54:07 +01:00
Irmo van den Berge
df52e99a8b Show 'no results for query' in help when multi-help topic is empty
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2021-01-16 08:54:07 +01:00
Irmo van den Berge
cabb7f426c Add predicate command filter option to the cloud help system
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2021-01-16 08:54:07 +01:00
Irmo van den Berge
b29d1ae5d1 Fix suggestions showing twice on spigot+brigadier
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2021-01-16 08:54:07 +01:00
Alexander Söderberg
c281c49edf 🚀 Prepare for release 2020-12-18 19:49:57 +01:00
Alexander Söderberg
c684c6607f Allow for literals to be combined with a variable arg(#181)
Co-authored-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2020-12-18 19:49:57 +01:00
Alexander Söderberg
e5a35afb8a Add @Parser annotated methods
Fixes #166. Also fixes #180.
2020-12-18 19:49:57 +01:00
Irmo van den Berge
5224050c99 Support repeating literals or argument names (#168)
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
2020-12-18 19:49:57 +01:00
zml
1e91273e0e Work towards making CommandMeta typesafe (#173)
Co-authored-by: Alexander Söderberg <sauilitired@gmail.com>
2020-12-18 19:49:57 +01:00