actually fix welcomer
This commit is contained in:
parent
910a7def8b
commit
190e630df4
@ -15,7 +15,7 @@ import java.util.concurrent.Executors;
|
|||||||
|
|
||||||
public class Main implements ModInitializer {
|
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 ExecutorService executorService = Executors.newCachedThreadPool();
|
||||||
@Getter private static final MinecraftClient minecraftClient = MinecraftClient.getInstance();
|
@Getter private static final MinecraftClient minecraftClient = MinecraftClient.getInstance();
|
||||||
@Getter private static final Gson gson = new GsonBuilder().create();
|
@Getter private static final Gson gson = new GsonBuilder().create();
|
||||||
|
@ -26,7 +26,7 @@ public class AutoWelcomerAddon extends Addon {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (waitingForReply && messageStripped.equals("+1 Gem for welcoming")) {
|
if (waitingForReply && messageStripped.startsWith("+1 Gem for welcoming")) {
|
||||||
Statistic.PLAYERS_WELCOMED.increment(); // Increment the stat
|
Statistic.PLAYERS_WELCOMED.increment(); // Increment the stat
|
||||||
waitingForReply = false;
|
waitingForReply = false;
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user