Remove EverythingRS API integration and related dependencies

This commit is contained in:
Dark98 committed 2026-11-13 01:19:45 +00:00
1 parent e1efbb0fdf
commit 0790eaf4a3
6 files changed
-77

No files matched your search

@@ -90,30 +90,4 @@ public class ConfigLoader {
bindBoolean(core, "cycle_logging", val -> Constants.CYCLE_LOGGING = val);
bindInt(core, "cycle_logging_tick", val -> Constants.CYCLE_LOGGING_TICK = val);
}
private static void initialize() {
JSONObject main = new JSONObject();
main.put("erssecret", "");
try (BufferedWriter br = new BufferedWriter(new FileWriter("data/secrets.json"))) {
br.write(main.toString());
} catch (IOException e) {
e.printStackTrace();
}
}
public static void loadSecrets() throws IOException {
if (!new File("data/secrets.json").exists()) {
initialize();
} else {
String out = new String(Files.readAllBytes(Paths.get("data/secrets.json")), StandardCharsets.UTF_8);
JSONObject obj = new JSONObject(out);
/*
* Sets External Services Vars
*/
if (obj.has("erssecret"))
GameEngine.ersSecret = obj.getString("erssecret");
}
}
}