Rollczi / LiteCommands

☄️ LiteCommands - Command framework for Velocity, Bukkit, Paper, BungeeCord, Minestom, Sponge, Fabric, JDA and future implementations.
https://docs.rollczi.dev/
Apache License 2.0
146 stars 21 forks source link

Check all arguments types on startup #399

Open BlackBaroness opened 6 months ago

BlackBaroness commented 6 months ago

Currently, the framework doesn't validate argument types on startup, so we can notice a missing argument resolver only when we run/tab-complete the command. My suggestion is make it validate them so we can fail fast - I think, we should throw an exception because of that, because otherwise it will lead to broken commands \ a lot of error spam in runtime without owning plugin notice