executeCommand

fun Player.executeCommand(command: String)(source)

Executes the given command for this player.

Note that the command must not contain the slash prefix.