mirror of
https://github.com/SerendipityR-2022/EndMinecraftPlusV2.git
synced 2024-10-31 20:08:00 +00:00
修复MotdAttackP模式未尝试加载代理 更新配置文件
This commit is contained in:
parent
8b57b08947
commit
091df1700d
@ -8,8 +8,8 @@ import cn.serendipityr.EndMinecraftPlusV2.VersionControl.AttackManager;
|
|||||||
import cn.serendipityr.EndMinecraftPlusV2.VersionControl.ProtocolLibs;
|
import cn.serendipityr.EndMinecraftPlusV2.VersionControl.ProtocolLibs;
|
||||||
|
|
||||||
public class EndMinecraftPlusV2 {
|
public class EndMinecraftPlusV2 {
|
||||||
public static String ver = "1.2.8";
|
public static String ver = "1.2.9";
|
||||||
public static Integer CfgVer = 2;
|
public static Integer CfgVer = 3;
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("========================-Forked by SerendipityR-========================");
|
System.out.println("========================-Forked by SerendipityR-========================");
|
||||||
@ -30,7 +30,7 @@ public class EndMinecraftPlusV2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void prepareProxy() {
|
public static void prepareProxy() {
|
||||||
if (!ConfigUtil.AttackMethod.equals(3)) {
|
if (!ConfigUtil.AttackMethod.equals(2)) {
|
||||||
LogUtil.doLog(0, "正在获取代理...", "ProxyUtil");
|
LogUtil.doLog(0, "正在获取代理...", "ProxyUtil");
|
||||||
ProxyUtil.getProxies();
|
ProxyUtil.getProxies();
|
||||||
ProxyUtil.runUpdateProxiesTask(ConfigUtil.ProxyUpdateTime);
|
ProxyUtil.runUpdateProxiesTask(ConfigUtil.ProxyUpdateTime);
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package cn.serendipityr.EndMinecraftPlusV2.VersionControl.OldVersion.AttackUtils;
|
package cn.serendipityr.EndMinecraftPlusV2.VersionControl.OldVersion.AttackUtils;
|
||||||
|
|
||||||
|
import cn.serendipityr.EndMinecraftPlusV2.Tools.ConfigUtil;
|
||||||
import cn.serendipityr.EndMinecraftPlusV2.Tools.LogUtil;
|
import cn.serendipityr.EndMinecraftPlusV2.Tools.LogUtil;
|
||||||
import cn.serendipityr.EndMinecraftPlusV2.Tools.OtherUtils;
|
import cn.serendipityr.EndMinecraftPlusV2.Tools.OtherUtils;
|
||||||
import cn.serendipityr.EndMinecraftPlusV2.Tools.SetTitle;
|
import cn.serendipityr.EndMinecraftPlusV2.Tools.SetTitle;
|
||||||
@ -47,7 +48,9 @@ public class MotdAttack extends IAttack {
|
|||||||
OtherUtils.doSleep(attack_joinsleep);
|
OtherUtils.doSleep(attack_joinsleep);
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
if (ConfigUtil.ShowFails) {
|
||||||
LogUtil.doLog(0, "发生错误: " + e, "MotdAttack#" + Thread.currentThread().getName());
|
LogUtil.doLog(0, "发生错误: " + e, "MotdAttack#" + Thread.currentThread().getName());
|
||||||
|
}
|
||||||
errorTimes++;
|
errorTimes++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,13 +81,16 @@ public class MotdAttackP extends IAttack {
|
|||||||
LogUtil.doLog(0, "连接已断开。", "MotdAttackP#" + Thread.currentThread().getName());
|
LogUtil.doLog(0, "连接已断开。", "MotdAttackP#" + Thread.currentThread().getName());
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
if (ConfigUtil.ShowFails) {
|
||||||
LogUtil.doLog(0, "发生错误: " + e, "MotdAttackP#" + Thread.currentThread().getName());
|
LogUtil.doLog(0, "发生错误: " + e, "MotdAttackP#" + Thread.currentThread().getName());
|
||||||
|
}
|
||||||
errorTimes++;
|
errorTimes++;
|
||||||
}
|
}
|
||||||
|
|
||||||
OtherUtils.doSleep(attack_joinsleep);
|
OtherUtils.doSleep(attack_joinsleep);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return new Thread(task);
|
return new Thread(task);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Forked by SerendipityR #
|
# Forked by SerendipityR #
|
||||||
##############################
|
##############################
|
||||||
|
|
||||||
CfgVer: 2
|
CfgVer: 3
|
||||||
|
|
||||||
AttackSettings:
|
AttackSettings:
|
||||||
Address: "example.com"
|
Address: "example.com"
|
||||||
|
Loading…
Reference in New Issue
Block a user