mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:21:32 +01:00
(fix) support english language in ruhypixel (autogg)
This commit is contained in:
parent
d3d05db169
commit
c12baaa8d2
@ -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(" ")) {
|
||||
|
Loading…
Reference in New Issue
Block a user