'How to hide /msg command in console

I'm trying to create a minecraft server on aternos. But I have a problem:

When I am in the console, I can see /msg commands. That's bad because I don't want to see what others speak and it would ruin the game. So is there any plugin or setting that can hide /msg commands?



Solution 1:[1]

This really depends on what Minecraft Server you're running.

If you're running one with spigot, paper, or any other that can add plugins; just search up and find a console filter Plugin like this bukkit plugin or this forge mod.

This question is quite broad and I don't have much to work with. If you want to DIY then do as Elikill58 said; take a look at the log4j log filter, this spigot thread might nudge you in the right direction.

Solution 2:[2]

I believe you are looking for something like the /msg command on Hypixel. In this case Hypixel just renames the /tell command (see more information here). Into a /msg.

Your question is broad, but I would assume you are just making it so the /msg (or /tell) commands are private and other players cannot see them. On aternos servers, it is default for it to only be shown to the server owner/moderators a.k.a admins. Therefore there is nothing needed to be changed.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Cryptizism
Solution 2 Ethan