From 2a8edee6275a4abe3375351455c27d2ee56f9c36 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:44:13 +1100 Subject: /gfs tab complete now uses NEU's Repo instead of SkyHanni Repo. #1053 --- .../at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt (limited to 'src/main/java/at/hannibal2/skyhanni/events') diff --git a/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt new file mode 100644 index 000000000..a162a8973 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/events/NeuRepositoryReloadEvent.kt @@ -0,0 +1,11 @@ +package at.hannibal2.skyhanni.events + +import at.hannibal2.skyhanni.utils.NEUItems.manager +import com.google.gson.JsonObject +import java.io.File + +class NeuRepositoryReloadEvent : LorenzEvent() { + fun getConstant(file: String): JsonObject? { + return manager.getJsonFromFile(File(manager.repoLocation, "constants/$file.json")) + } +} -- cgit