Revxrsal / Lamp

A modern annotations-driven commands framework for Java and Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sub-commands do not ignore case

demengc opened this issue · comments

While base commands ignore capitalization, sub-commands do not seem to do so. In addition, Lamp seems to automatically convert all sub-commands to lowercase, so you essentially cannot have any sub-commands with uppercase characters. This was tested in Bukkit.

public class TestCmd {

  // "/test capitalization" works
  // "/test CAPITALization" does not work
  // "/test capiTALization" does not work
  @Command("test CAPITALization")
  public void runTest(CommandActor actor) {
    actor.reply("Hello world!");
  }
}

Appears to be fixed with 1d88fd4- thank you for the fast fix! <3