mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 06:51:32 +01:00
(fix) autotip & autogg
This commit is contained in:
parent
adce39dfe7
commit
be43190807
@ -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(" ")) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user