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

Allow the ability to use aliases without requiring a name in @Execute #402

Open RyanTheTechMan opened 5 months ago

RyanTheTechMan commented 5 months ago

This would only affect @Execute as you need a base command to add arguments to.

Currently in v3.4.2 if an alias is set without the name parameter, then aliases are not used. This is not expected behavior.

Wanted:

@Execute(aliases = {"info"})

This would allow the player to run /example or /example info

The current work around is to create two separate functions, one with a name parameter and one without.