diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java b/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java index b86f990a0..4939da809 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java @@ -316,6 +316,7 @@ public class Analysis { for (UUID uuid : playerCount.getUuids()) { boolean banned = banSources.stream().anyMatch(pluginData -> { + StaticHolder.saveInstance(this.getClass(), plugin.getClass()); try { Serializable value = pluginData.getValue(uuid); return value instanceof Boolean diff --git a/Plan/test/main/java/com/djrapitops/plan/utilities/dump/HastebinTest.java b/Plan/test/main/java/com/djrapitops/plan/utilities/dump/HastebinTest.java index cf740a083..5d015c9db 100644 --- a/Plan/test/main/java/com/djrapitops/plan/utilities/dump/HastebinTest.java +++ b/Plan/test/main/java/com/djrapitops/plan/utilities/dump/HastebinTest.java @@ -1,7 +1,9 @@ package main.java.com.djrapitops.plan.utilities.dump; +import com.djrapitops.plugin.StaticHolder; import com.djrapitops.plugin.api.utility.log.Log; import com.google.common.collect.Iterables; +import main.java.com.djrapitops.plan.utilities.MiscUtils; import main.java.com.djrapitops.plan.utilities.file.dump.Hastebin; import org.bukkit.plugin.java.JavaPlugin; import org.json.simple.parser.ParseException; @@ -35,6 +37,7 @@ public class HastebinTest { TestInit.init(); Thread thread = new Thread(() -> { + StaticHolder.saveInstance(this.getClass(), MiscUtils.getIPlan().getClass()); try { Hastebin.upload(RandomData.randomString(10)); } catch (IOException e) {