Increase sleep time to fix AntiAFK

As I understand, it executes command even before entered the server. New time should avoid it, but it's just a workaround. You should somehow wait for world to load + 5 seconds.

BTW, commands in limbo execute much slower, increase timeout there in ~3 times in the future.
This commit is contained in:
Perchun Pak 2023-06-20 20:06:44 +02:00 committed by GitHub
parent 242b2835f7
commit 2c7f4250ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,11 +102,11 @@ public class ChatReceivedEvent {
Utils.addTitle("You got sent to Limbo or Lobby!");
Flipper.state = FlipperState.NONE;
if (Lilase.cofl.isOpen()) Lilase.cofl.toggleAuction();
Thread.sleep(5000 + new Random().nextInt(500));
Thread.sleep(30000 + new Random().nextInt(5000));
Utils.sendServerMessage("/lobby");
Thread.sleep(5000 + new Random().nextInt(500));
Thread.sleep(30000 + new Random().nextInt(5000));
Utils.sendServerMessage("/skyblock");
Thread.sleep(5000 + new Random().nextInt(500));
Thread.sleep(30000 + new Random().nextInt(5000));
Utils.sendServerMessage("/hub");
if (!Lilase.cofl.isOpen()) Lilase.cofl.toggleAuction();
// Thread bzchillingthread = new Thread(bazaarChilling);