title: MinecraftForge modding Send a command from the client to the server
body: <p>So I wanted to create a GUI for a server to make stuff easier for ppl. I created a Gui with buttons for easy use so you don't have to enter commands all the time. The button works but I didn't find any function that executes a command as the player itself. I googled around but didn't find a solution for this problem.</p>
  
  <p>(btw. this obviously didn't work: <code>player.sendChatToPlayer("/{any command}");</code> (player is a EntityPlayer))</p>
  
  <p>Regards Jens</p>