mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:21: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();
|
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(" ")) {
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user