Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[SOLVED]Alias for commands

Comments in 'Plugin Development' started by iksaku, Jan 1, 2014.

  1. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Hi everyone! :D

    In this post I want to ask if anyone can share with me a template to write alias for plugins, I know that an alias is defined with:

    $this->api->console->alias("<alias>", "<main cmd>", array($this, "handleCommand"));

    But I want to put every alias in a separated file, write all my own alias for any command in the same file, custom alias for simpleauth, for giving items, world tp, for any plugin or command.

    Thanks :D
    (Sorry for my bad english :p )
  2. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    NOTE: I want to do that without need to register every command

    it's possible?

    Any ideas @wies @Glitchmaster_PE ?
    Last edited: Jan 1, 2014
  3. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    EDIT: I already discover how to do that, thanks anyway :D

Share This Page

Advertisement