getPlayer

fun CommandContext<CommandSourceStack>.getPlayer(name: String): Player?

Retrieves a Player from the command context.