(fix) support english language in ruhypixel (autogg)

This commit is contained in:
kirillsaint 2024-01-19 21:31:50 +06:00
parent d3d05db169
commit c12baaa8d2

View File

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