This simple plugin adds the command "/pc @p <command>". This <command> applies the command to the nearest player. This command can be used by both the player and the command block.
For example: /pc @p rtp - applies the /rtp command on behalf of the player. /pc @p say This is test message - ....