actually fix welcomer

This commit is contained in:
Lee 2023-03-09 15:04:55 +00:00
parent 910a7def8b
commit 190e630df4
2 changed files with 2 additions and 2 deletions

@ -15,7 +15,7 @@ import java.util.concurrent.Executors;
public class Main implements ModInitializer {
public static final Logger LOGGER = LogManager.getLogger(Main.class);
public static final Logger LOGGER = LogManager.getLogger("WildAddons");
@Getter private static final ExecutorService executorService = Executors.newCachedThreadPool();
@Getter private static final MinecraftClient minecraftClient = MinecraftClient.getInstance();
@Getter private static final Gson gson = new GsonBuilder().create();

@ -26,7 +26,7 @@ public class AutoWelcomerAddon extends Addon {
return;
}
if (waitingForReply && messageStripped.equals("+1 Gem for welcoming")) {
if (waitingForReply && messageStripped.startsWith("+1 Gem for welcoming")) {
Statistic.PLAYERS_WELCOMED.increment(); // Increment the stat
waitingForReply = false;
return;