mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-02-05 15:29:35 +08:00
修改 - 颜色匹配规则
This commit is contained in:
parent
704a02645b
commit
ad4befa826
@ -110,10 +110,9 @@
|
||||
|
||||
//Minecraft 服务器输出基本颜色
|
||||
TOOLS.encodeConsoleColor = function (text) {
|
||||
text = text.replace(/\[/igm, "<span class='color-green'>[ </span>");
|
||||
text = text.replace(/\]/igm, "<span class='color-green'> ]</span>");
|
||||
text = text.replace(/\[/igm, "<span class='color-green'><b>[ </b></span>");
|
||||
text = text.replace(/\]/igm, "<span class='color-green'><b> ]</b></span>");
|
||||
text = text.replace(/INFO/gm, "<span style='color:#03ea0a;'>INFO</span>");
|
||||
text = text.replace(/WANG/gm, "<span class='color-red'>WANG</span>");
|
||||
text = text.replace(/(\d{2,}:\d{2,}:\d{2,})/gm, "<span style='color:#017EBC;'> $1 </span>");
|
||||
|
||||
RegExpStringArr = [
|
||||
@ -129,7 +128,6 @@
|
||||
["\\d{1,3}%", "true", "false",
|
||||
"Starting Minecraft server on", "--------",
|
||||
"world_the_end",
|
||||
"(player\\d{0,1})",
|
||||
"world_nether",
|
||||
"Usage",
|
||||
"Server thread", "Done"
|
||||
|
@ -16,11 +16,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="TerminalMinecraft" contenteditable="false">
|
||||
<span class="color-green">[INFO]</span> MCSM Console Subsystem
|
||||
<br>
|
||||
<span class="color-green">[INFO]</span> 欢迎使用,现在正在监听控制台...
|
||||
<br>
|
||||
<span class="color-green">[INFO]</span> 现在,服务端的所有标准输出均将输出到此区域..
|
||||
<span style='color:#03ea0a;'>[ SYSTEM ]</span> MCSM Console Listener...
|
||||
<br>
|
||||
</div>
|
||||
<div class="" style="border-top: 1px solid #585858;">
|
||||
|
Loading…
Reference in New Issue
Block a user