MyWarp

MyWarp

220k Downloads

Investigate alternatives to Intake

TheE opened this issue · 3 comments

commented

MyWarp handles commands within the core and uses the same command code for all platforms as reimplementing commands per platform is way to complicated. Commands are parsed by our own fork of Intake, as the upstream version is no longer maintained.

Intake itself works well, but has some shortcomings. Maintaining Intake ourself is somewhat complicated because the code is not well documented and sometimes relatively complex.

Are there any good alternatives to Intake? It would need to support:

  • Subcommands.
  • Typed paramaters,
  • Optional parameters,
  • Options with and without arguments,
  • Help,
  • Localizations,
  • Requirements to execute (or even see) a certain command. (This is typically not supported by CLI parsers...)

Possible solutions:

commented

Check out this bad boy! https://github.com/aikar/commands

commented

I'd like to switch to aikar commands, but for now this is blocked by aikar/commands#150.

commented

As of 2021, still no progress has been made. Here are some alternatives that may be interesting:

However, these do not seem to support Minecraft 1.7.10. The process is further complicated by the introduction of Brigadier in Minecraft 1.13 which one may want to support.

I guess, unless there are any breaking changes in Bukkit/Spigot that force us to reconsider the support for 1.7.10, we are going to stick with our Intake fork for the time being.