executeCommand

fun Player.executeCommand(command: String)

Executes the given command for this player.

Note that the command must not contain the slash prefix.