Minecraft server output support
Mhowser opened this issue · 0 comments
Mhowser commented
Hi there!
I would like help getting the output from a Minecraft server colorized, as it is plain white normally and kinda hard to read specific lines.
here is an example of the normal formatting:
The lines after:
[main/INFO]
& [Server thread/INFO]
should be white (unchanged)
[main/WARN]
& [Server thread/WARN]
Yellow
[main/ERROR]
& [Server thread/ERROR]
Red
[main/FATAL]
& [Server thread/FATAL]
White text on red background
Also, the prefix can be anything, for example, [Netty Epoll Server IO #3/WARN]
or [Thread-105/INFO]
So, I believe matching the part /WARN]:
with regex and using that to format the rest of the line may work.