(fix) autotip & autogg

This commit is contained in:
kirillsaint 2024-01-20 12:54:10 +06:00
parent adce39dfe7
commit be43190807
2 changed files with 11 additions and 3 deletions

View File

@ -49,8 +49,17 @@ public class AutoGGMod extends Mod {
err.printStackTrace(); err.printStackTrace();
AutoGGMod.isHypixel = false; AutoGGMod.isHypixel = false;
} }
if(Server.isRuHypixel()) {
String unformattedMessage = e.getChatComponent().getUnformattedText();
if((unformattedMessage.contains("Победитель:") || unformattedMessage.contains("Winner:")) && unformattedMessage.startsWith(" ")) {
AutoGGMod.isRunning = true;
AutoGGMod.THREAD_POOL.submit(new sendGG());
}
return;
}
if(AutoGGMod.isHypixel || Server.isRuHypixel()) { if(AutoGGMod.isHypixel) {
try { try {
String unformattedMessage = e.getChatComponent().getUnformattedText(); String unformattedMessage = e.getChatComponent().getUnformattedText();
if (AutoGGMod.triggers.stream().anyMatch(trigger -> unformattedMessage.contains(trigger.toString())) && unformattedMessage.startsWith(" ")) { if (AutoGGMod.triggers.stream().anyMatch(trigger -> unformattedMessage.contains(trigger.toString())) && unformattedMessage.startsWith(" ")) {

View File

@ -36,8 +36,7 @@ public class AutoTipMod extends Mod {
@EventTarget @EventTarget
public void onTick(ClientTickEvent event) { public void onTick(ClientTickEvent event) {
if(Server.isHypixel()) { if(Server.isHypixel()) {
if(timer.delay(15000)) { if(timer.delay(600000)) {
Client.logger.info("Attempting to tip: all");
mc.thePlayer.sendChatMessage("/tip all"); mc.thePlayer.sendChatMessage("/tip all");
timer.reset(); timer.reset();
} }