Solved Help

Discussion in 'Plugin Development' started by HyrulesLegend, Nov 4, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    HyrulesLegend

    I want to shorten my commands (forgot the word the that)
    ex: /clearinv - /ci. Without coding a whole new command "/ci"
     
  2. Offline

    OverSpeed

    Code:
    if (label.equalsIgnoreCase("clearinv") || label.equalsIgnoreCase("ci"))
    {
    Some code ...
    }
    I think it works :)
     
  3. Offline

    Woobie

    Max_The_Link_Fan
    This, or just add aliases to your plugin.yml
     
  4. Offline

    OverSpeed

    Woobie : yes, true ! I have missed that.
    Aliases in plugin.yml :
    Code:
    commands:
      clearinv:
        description: Clear inventory.
        aliases: [ci, clearinventory] (for example)
    
     
  5. Offline

    HyrulesLegend

    Thank you everyone! I just forgot what the word was, I figured you added it to the plugin.yml somewhere. :p
    Thanks OverSpeed & Woobie
     
Thread Status:
Not open for further replies.

Share This Page