Okay, I forgot to test it on a singleplayer world and as I tried it, it actually shows the command, but only if it is a registered existing command. But if I try it on a server, it still doesn't work
I would like to be able to see the command I executed like the message "Player issued server command: /cmd" in a minecraft server console