修复MotdAttackP模式未尝试加载代理 更新配置文件

This commit is contained in:
SerendipityR 2022-08-28 11:37:49 +08:00 committed by GitHub
parent 8b57b08947
commit 091df1700d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 6 deletions

View File

@ -8,8 +8,8 @@ import cn.serendipityr.EndMinecraftPlusV2.VersionControl.AttackManager;
import cn.serendipityr.EndMinecraftPlusV2.VersionControl.ProtocolLibs;
public class EndMinecraftPlusV2 {
public static String ver = "1.2.8";
public static Integer CfgVer = 2;
public static String ver = "1.2.9";
public static Integer CfgVer = 3;
public static void main(String[] args) {
System.out.println("========================-Forked by SerendipityR-========================");
@ -30,7 +30,7 @@ public class EndMinecraftPlusV2 {
}
public static void prepareProxy() {
if (!ConfigUtil.AttackMethod.equals(3)) {
if (!ConfigUtil.AttackMethod.equals(2)) {
LogUtil.doLog(0, "正在获取代理...", "ProxyUtil");
ProxyUtil.getProxies();
ProxyUtil.runUpdateProxiesTask(ConfigUtil.ProxyUpdateTime);

View File

@ -1,5 +1,6 @@
package cn.serendipityr.EndMinecraftPlusV2.VersionControl.OldVersion.AttackUtils;
import cn.serendipityr.EndMinecraftPlusV2.Tools.ConfigUtil;
import cn.serendipityr.EndMinecraftPlusV2.Tools.LogUtil;
import cn.serendipityr.EndMinecraftPlusV2.Tools.OtherUtils;
import cn.serendipityr.EndMinecraftPlusV2.Tools.SetTitle;
@ -47,7 +48,9 @@ public class MotdAttack extends IAttack {
OtherUtils.doSleep(attack_joinsleep);
}
} catch (Throwable e) {
LogUtil.doLog(0, "发生错误: " + e, "MotdAttack#" + Thread.currentThread().getName());
if (ConfigUtil.ShowFails) {
LogUtil.doLog(0, "发生错误: " + e, "MotdAttack#" + Thread.currentThread().getName());
}
errorTimes++;
}
}

View File

@ -81,13 +81,16 @@ public class MotdAttackP extends IAttack {
LogUtil.doLog(0, "连接已断开。", "MotdAttackP#" + Thread.currentThread().getName());
}
} catch (Throwable e) {
LogUtil.doLog(0, "发生错误: " + e, "MotdAttackP#" + Thread.currentThread().getName());
if (ConfigUtil.ShowFails) {
LogUtil.doLog(0, "发生错误: " + e, "MotdAttackP#" + Thread.currentThread().getName());
}
errorTimes++;
}
OtherUtils.doSleep(attack_joinsleep);
}
};
return new Thread(task);
}
}

View File

@ -3,7 +3,7 @@
# Forked by SerendipityR #
##############################
CfgVer: 2
CfgVer: 3
AttackSettings:
Address: "example.com"