Skip to content

Commit

Permalink
Updated v3.0.3 Pre-Release Build 00022
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlSkyCoding committed Apr 16, 2023
1 parent 55f002c commit da3c3bf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private static void showList(File file) {
} else if (file.isFile()) {
System.out.println("文件:" + file.getPath());
}else{
System.out.println("目录目前不存在:可能未运行服务端/不是相应API的客户端");
ThreadLogger.INFO.Output("目录目前不存在:可能未运行服务端/不是相应API的客户端");
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/cn/carlsky/nlr/mcsm/System/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ public static void SetProperties() {
public static void DeveloperGUI() {
ThreadLogger.use.OutLine.NoHead();
ThreadLogger.INFO.Output("============================== 开发者菜单 ===============================");
ThreadLogger.INFO.Output("1.列出Only_ID和Process PID/exited");
ThreadLogger.INFO.Output("99.回到主菜单");
ThreadLogger.INFO.Output(" 1.列出Only_ID和Process PID/exited");
ThreadLogger.INFO.Output(" 99.回到主菜单");
ThreadLogger.INFO.Output("=======================================================================");
ThreadLogger.NoLine.INFO.Scanner(" 请按照执行菜单输入命令:");
}
Expand All @@ -176,9 +176,9 @@ public static void PresetTasksGUI() {
i++;
}
ThreadLogger.INFO.Output("============================= 预设任务菜单 ==============================");
ThreadLogger.INFO.Output("1.新建一个预设任务");
ThreadLogger.INFO.Output("2.运行任务");
ThreadLogger.INFO.Output("99.回到主菜单");
ThreadLogger.INFO.Output(" 1.新建一个预设任务");
ThreadLogger.INFO.Output(" 2.运行任务");
ThreadLogger.INFO.Output(" 99.回到主菜单");
ThreadLogger.INFO.Output("=======================================================================");
ThreadLogger.NoLine.INFO.Scanner(" 请按照执行菜单输入命令:");
}
Expand Down
15 changes: 4 additions & 11 deletions src/main/java/cn/carlsky/nlr/mcsm/System/MainThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static void Run() throws IOException {
}
}
case "/support","98" -> {
ThreadLogger.INFO.Output("\n 反馈请前往Issue(反馈任何问题,也许最快):https://github.com/CarlSkyCoding/ArkPowered\n 或方块盒子反馈工具:https://id.arkpowered.cn/panel/support\n 或发送邮箱到:[email protected]\n 或加群:705439821\n");
ThreadLogger.INFO.Output("\n\n 反馈请前往Issue(反馈任何问题,也许最快):https://github.com/CarlSkyCoding/ArkPowered\n 或方块盒子反馈工具:https://id.arkpowered.cn/panel/support\n 或发送邮箱到:[email protected]\n 或加群:705439821\n");
Ask.Continue();
MainThread.Run();
}
Expand Down Expand Up @@ -124,16 +124,9 @@ public static void DeveloperPart() throws IOException {
String CODE = data.Scan();

switch (CODE) {
case "1":
ProcessControl.ListAllProcess();
Ask.Continue();
break;
case "99":
MainThread.Run();
break;
default:
MainThread.DeveloperPart();
break;
case "1" -> ProcessControl.ListAllProcess();
case "99" -> MainThread.Run();
default -> MainThread.DeveloperPart();
}
}
}
8 changes: 4 additions & 4 deletions src/main/java/cn/carlsky/nlr/mcsm/System/ThreadLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void Output(String TEXT) {
public static void Scanner(String TEXT) {
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
Date date = new Date(System.currentTimeMillis());
System.out.println("[" + formatter.format(date) + "] [MCSManager/INFO] [Scanner] " + TEXT);
System.out.println("[" + formatter.format(date) + "] [MCSManager/INFO] [TYPEIN] " + TEXT);
}

public static void Checker(String TEXT) {
Expand All @@ -43,7 +43,7 @@ public static void Output(String TEXT) {
public static void Scanner(String TEXT) {
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
Date date = new Date(System.currentTimeMillis());
System.out.println("[" + formatter.format(date) + "] [MCSManager/WARN] [Scanner] " + TEXT);
System.out.println("[" + formatter.format(date) + "] [MCSManager/WARN] [TYPEIN] " + TEXT);
}

public static void Checker(String TEXT) {
Expand All @@ -64,7 +64,7 @@ public static void Output(String TEXT) {
public static void Scanner(String TEXT) {
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
Date date = new Date(System.currentTimeMillis());
System.out.print("[" + formatter.format(date) + "] [MCSManager/INFO] [Scanner] " + TEXT);
System.out.print("[" + formatter.format(date) + "] [MCSManager/INFO] [TYPEIN] " + TEXT);
}

public static void Checker(String TEXT) {
Expand All @@ -83,7 +83,7 @@ public static void Output(String TEXT) {
public static void Scanner(String TEXT) {
SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
Date date = new Date(System.currentTimeMillis());
System.out.print("[" + formatter.format(date) + "] [MCSManager/WARN] [Scanner] " + TEXT);
System.out.print("[" + formatter.format(date) + "] [MCSManager/WARN] [TYPEIN] " + TEXT);
}

public static void Checker(String TEXT) {
Expand Down

0 comments on commit da3c3bf

Please sign in to comment.