(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();
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 {
String unformattedMessage = e.getChatComponent().getUnformattedText();
if (AutoGGMod.triggers.stream().anyMatch(trigger -> unformattedMessage.contains(trigger.toString())) && unformattedMessage.startsWith(" ")) {

View File

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