Creating an alias for a command from a existing plugin (Eclipse)

Discussion in 'Programming' started by TJV, Jun 6, 2016.

  1. TJV

    TJV

    Hi!
    I recently started using Eclipse to create my own plugins. I was wondering if you could make an alias for a command from a existing plugin. For example:

    If you execute /tutorial it executes /vote wich belongs to an other plugin. I used following code but it did not work so far:

    << See: uploaded file >>

    I found nothing on the internet that explains this issue so thats why I created this new tread.
    Hope to get some help soon :)
     

    Attached Files:

  2. There is nothing in your code about either tutorial or vote. Please show us your attempt at doing what you ecplained.
     
  3. MiniDigger

    Supporter

  4. TJV

    TJV

    @MiniDigger Thanks MiniDigger, I will try that!

    @Rocoty the /tutorial and /vote are just examples. What I am really trying to do is that if you type /pb kit revolver it will convert it to /shot get python to get a weapon from crackshot.

    I already figured out that the (args.lenght == 1) has to be (args.length == 2). But still, it does not work...
     
    #4 TJV, Jun 8, 2016
    Last edited: Jun 8, 2016
  5. TJV

    TJV

    Thanks, I figured out how to do it:

    player.performCommand("/command");