Skip to content

Commit

Permalink
Made country loading in a thread
Browse files Browse the repository at this point in the history
Changed description from 40m players to 80m
  • Loading branch information
DAMcraft committed Oct 11, 2023
1 parent 42edafe commit 7ce8218
Show file tree
Hide file tree
Showing 6 changed files with 285 additions and 278 deletions.
13 changes: 5 additions & 8 deletions src/main/java/de/damcraft/serverseeker/ServerSeeker.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@
import meteordevelopment.meteorclient.systems.modules.Modules;
import net.minecraft.item.*;
import org.slf4j.Logger;
import de.damcraft.serverseeker.country.Countries;

import java.util.HashMap;
import java.util.Map;

import static de.damcraft.serverseeker.country.Countries.COUNTRIES;

public class ServerSeeker extends MeteorAddon {
/*
Feature list for anticope.ml:
(creates features matching the RegEx '(?:add\(new )([^(]+)(?:\([^)]*)\)\)', as anticope checks for that.
add(new Find servers with many parameters, for example: Cracked, Description, Player count, much more...())
add(new Server database with around 1.000.000 servers!())
add(new Over 40.000.000 players tracked!())
add(new Over 80.000.000 players tracked!())
add(new Search for ANY server you want!())
add(new Join misconfigured BungeeCord backends with any name you want!())
*/
Expand All @@ -33,12 +32,10 @@ public class ServerSeeker extends MeteorAddon {
public void onInitialize() {
LOG.info("Loaded the ServerSeeker addon!");

// Load countries
COUNTRY_MAP.put("UN", new Country("Any", "UN"));
Countries.init();

// Map of country codes to country

for (Country country : COUNTRIES) {
COUNTRY_MAP.put(country.code, country);
}
Modules.get().add( new BungeeSpoof() );
SettingsWidgetFactory.registerCustomFactory(CountrySetting.class, (theme) -> (table, setting) -> {
CountrySetting.countrySettingW(table, (CountrySetting) setting, theme);
Expand Down
Loading

0 comments on commit 7ce8218

Please sign in to comment.