Blocking a plugins command from displaying in chat and console when run from command block
I am trying to create a timer for a mini game I am working on by using a plugin called Multiple Scoreboards. The plugin basically lets you display different scoreboards to different players, so I am having it display a timer scoreboard to only the players in the minigame.
The way that I am running the timer is by subtracting 1 point every second from a player called Time_Left that is displayed on the sidebar. However, the command block that is subtracting a point every second is displaying the command it's running in both the chat of the oped players and the console.
Is there a way I can block this command from being shown to the console and oped players when it is run by a command block?
Thanks, Jonny
Best Answer
The commands /gamerule commandBlockOutput false
and /gamerule logAdminCommands false
should work. The first command blocks the output from chat, and the second blocks it from logging.
Pictures about "Blocking a plugins command from displaying in chat and console when run from command block"
How do you make it so command block commands not appear in chat?
To completely hide your plugin list from other users you need to do the following:How do you hide a command block input?
The "commandblockoutput" gamerule, when set to false, will disable that chat output.Obtaining Command Blocks In Vanilla Survival On Prototech
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ivan Babydov, Sora Shimazaki, Zen Chung, Sam Lion