Make a command run another command that is in another plugin?

Discussion in 'Plugin Development' started by adde, Apr 7, 2013.

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

    adde

    How would I do so my command runs another command that is another plugin.

    This is just an example.
    Let's say that I want to have my command do sender.sendMessage("Hello."); AND run the other plugin's command that is /spawn?

    I know how to write a command but not make it run a command from another plugin, help please.
     
  2. Offline

    MrSparkzz

    adde I think it might be this, I'm not on my testing computer so I can't do any testing at the moment.
    Code:java
    1.  
    2. Bukkit.dispatchCommand(sender, "spawn");
    3.  
     
    adde likes this.
  3. Offline

    adde

    Thx.
     
Thread Status:
Not open for further replies.

Share This Page