Executing a command from a method?

Discussion in 'Plugin Development' started by Anonomoose, Mar 19, 2014.

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

    Anonomoose

    Hey everyone,

    I'm currently creating a GUI, where if you click an item it executes a command. I've got the framework complete, I just haven't managed to find the method on how to actually execute the command in the players name, any help?

    Thanks!
     
  2. Anonomoose
    You can use Server.dispatchCommand(sender, command) to do that.
     
    Anonomoose likes this.
  3. Offline

    Anonomoose

    Forgot to say earlier, it worked perfectly, thanks a lot!
     
Thread Status:
Not open for further replies.

Share This Page