diff --git a/README.md b/README.md
index 9259b6ad..12e8e367 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ You can download them from here: https://ci.codemc.org/job/Games647/job/FastLogi
fastlogin.bukkit.command.premium
fastlogin.bukkit.command.cracked
+
fastlogin.command.premium.other
fastlogin.command.cracked.other
diff --git a/core/pom.xml b/core/pom.xml
index 956fbcfa..7c8e2e68 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -40,10 +40,8 @@
jar
- 8
- 8
-
- 21
+
+ 8
FastLoginCore
diff --git a/core/src/test/java/com/github/games647/fastlogin/core/AsyncSchedulerTest.java b/core/src/test/java/com/github/games647/fastlogin/core/AsyncSchedulerTest.java
index 32e49d92..f6428062 100644
--- a/core/src/test/java/com/github/games647/fastlogin/core/AsyncSchedulerTest.java
+++ b/core/src/test/java/com/github/games647/fastlogin/core/AsyncSchedulerTest.java
@@ -33,6 +33,7 @@ import org.junit.jupiter.api.condition.JRE;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
@@ -63,8 +64,14 @@ class AsyncSchedulerTest {
}
private static void setVirtual(AtomicBoolean virtual) {
- if (Thread.currentThread().isVirtual()) {
- virtual.set(true);
+ boolean isVirtual;
+ try {
+ isVirtual = (boolean) Thread.class.getDeclaredMethod("isVirtual").invoke(Thread.currentThread());
+ if (isVirtual) {
+ virtual.set(true);
+ }
+ } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException ex) {
+ ex.printStackTrace();
}
}
}