Closed creatorfromhell closed 10 months ago
I think this feature can be implement by creating a new argument type like GameruleSetup
with join resolve to process all values.
The single @VarArg
may not support what you want, it only Gamerule[]
, not Map<Gamerule,Boolean>
.
So, using the @Join GameruleSetup[] setups
may be the best solution for you.
I think a feature to support VarArgs for commands would be nice. This could be specified by using an array in the argument type.
An example would be with a gamerule command: /world setrules worldname rule1:true rule2:true rule3:true
Code:
Alternative code: