added MeteorDevelopment/meteor-client/pull/1300

This commit is contained in:
Cloudburst
2021-08-08 16:23:00 +02:00
parent 393fc729b9
commit 5b71f9e551
12 changed files with 814 additions and 0 deletions

View File

@@ -5,12 +5,15 @@ import meteordevelopment.meteorclient.MeteorClient;
import java.util.Timer;
import java.util.TimerTask;
import cloudburst.rejects.utils.seeds.Seeds;
public class RejectsUtils {
public static int CPS = 0;
public static void init() {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
RejectsConfig.get().save(MeteorClient.FOLDER);
Seeds.get().save(MeteorClient.FOLDER);
}));
new Timer().scheduleAtFixedRate(newTimerTaskFromLambda(() -> CPS = 0), 0, 1000);