Line to stop messages from a mod?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Cosmology27

New Member
Jul 29, 2019
297
0
1
When running a server, is there some kind of command line I can run in my serverstart.sh that will prevent a mod from outputting messages in the server window?
For example, difficultLife spams TONS of messages (about once every 10 seconds), and I couldn't care less about those messages and would like them to stop.
There's nothing in the config to stop it, and the messages are preventing me from keeping tabs on what's going on with the server (I actually missed something important the other day).

Is there some line of code I can put in to ignore messages from that mod?

Thanks for the help
 

Inaeo

New Member
Jul 29, 2019
2,158
-3
0
If a mod is spamming your console, I would think the best course of action would be to notify the Mod Author. Very few people enjoy mindless spam in their server console, so having it fixed at the root is a win for all.
 

Cosmology27

New Member
Jul 29, 2019
297
0
1
I actually did contact the mod author, and s/he said s/he'd put something in the config next update. I appreciate that, but it doesn't help my situation at all, because FTB likely won't update Horizons:Daybreaker just to fix this problem.

Is there a way to stop a mod from writing an output to the server window?
 

RavynousHunter

New Member
Jul 29, 2019
2,784
-3
1
Not without developing a mod of your own that basically hacks into the target mod and prevents it from printing to the console, something that would be rather difficult, even for an experienced Java programmer. If you're good enough with Java and reflection, you can do it, but as far as I know, neither Minecraft, the Forge server, or the JVM have the ability to block console logs from a specific source.
 
  • Like
Reactions: Cosmology27

KingTriaxx

Forum Addict
Jul 27, 2013
4,266
1,333
184
Michigan
As long as you're sure Daybreaker isn't getting updated, you could probably update it manually. Of course anyone playing would also have to update, but if it's just you, that shouldn't be an issue.