Minecraft – How to run a command in server control panel and have the result said in game chat

minecraft-commandsminecraft-java-editionminecraft-java-edition-server

I'm trying to get my server to type "tps" into the console every 5 minutes and then forward the result to the ingame chat for players to see. Right now if I type tps into the control panel it just returns the result for the control panel to see, how could I get it to forward the result to everyone in game?

Best Answer

You need to do /gamerule commandBlockOutput true, and it should work. If it doesn't work, you're probably using a mod because the gamerule above is on by default.