I am wondering this too, like if a player types something if you create a command /house it will send a command different like /warp house.
I know that warps doesen't work because the plugin runs the command not the player. I only want to know how I can run a command like /kick someone or /money give someone
Click "search", click "advanced search", enter "onCommand" and select the plug-in development forum from the list of available boards to search. If you do as stated above you will find dozens upon dozens of code samples for creating commands.
Doesen't helped me. I already created a command. I want to know how i can run a command that isn't created by my plugin.
I don't believe you can, I think you would be better off calling what ever functions that plug-ins command is calling if their API exposes it, because trying to call another plug-in's functionality from it's command handlers sounds very hackish...
Console command: Code:java ConsoleCommandSender ccs = server.getConsoleSender();server.dispatchCommand(ccs, "command"); Player command: Code:java server.dispatchCommand(player, "command"); That wasn't that hard, was it