I’m looking for a way of forcing a player to execute a command from a different plugin, whose JAR I don’t have access to. Is there any method in Sponge to do this?
I just figured it out, you need to use
game.getCommandDispatcher.process(player, args)
But when specifying the command in args
, do I need to precede it with a “/” or not?
My guess (I don’t know for sure, someone who knows is welcome to correct me if wrong) is that the / probably isn’t needed in this case, since all that’s for in the normal game is to determine if someone is typing a command or chat.
I thought so too, but I was unsure.