Changing another player's gamemode using /execute as will result in the command execution chat messages to show incorrectly for both the command executor, and the player who's gamemode was changed.
Steps to Reproduce:
- Have two players join a server, or LAN world
- Player 1 exectutes the following command:
/execute as [PLAYER 2 NAME] run gamemode [GAMEMODE]
Observed Behavior:
Player 1 will see the following chat message, which states their 'own' gamemode was changed:
Player 2 will see a chat message of the gamemode changing, as if it was another player:
(example)
Expected Behavior:
The messages shown to each player would be inverted, and properly describe what happened to the player whose gamemode was changed.