Closed wizjany closed 5 years ago
It's actually already down there as part of the parse result. I'll add a check for sub-command condition.
Oof, didn't realize CommandParemeters implemented InjectedValueAccess. Could have sworn I looked too :man_facepalming:
In https://github.com/EngineHub/Piston/blob/v0.4.0/core/src/main/java/org/enginehub/piston/suggestion/DefaultSuggestionProvider.java#L174 it would be nice to have access to InjectedValueAccess so that subcommands that the player doesn't have permission to can be filtered. That said I'm not sure if passing IVA this far down has other ramifications.