So say a server has essentials, I would like to forward a /ban command with arguments. How does one accomplish this without actually hooking onto the plugin?
How would I format that? I noticed it is a Boolean type. Server.dispatchCommand(arg0, arg1); getServer().dispatchCommand(getServer().getConsoleSender(), "ban" + args[0]); Something like that?
Your thinking is almost correct, you only need to add a space between ban and the argument, since the command is "/ban Crud41" and not "/banCrud41" boolean commandSucces = getServer().dispatchCommand(getServer().getConsoleSender(), "ban" + ' ' + args[0]); The command returns a boolean if the command was executed successfully.