- Correct command concurrency issues on Bukkit servers

- Removed dynamic class loading of libraries to fix antivirus flags of the plugin.
This commit is contained in:
2024-03-15 11:06:49 -04:00
parent b2fcc4ff26
commit 3f5ab39877
26 changed files with 224 additions and 1892 deletions
@@ -1,6 +1,7 @@
package dev.brighten.antivpn.utils;
import java.io.*;
import java.util.concurrent.ThreadFactory;
import java.util.regex.Pattern;
public class MiscUtils {
@@ -41,6 +42,14 @@ public class MiscUtils {
}
}
public static ThreadFactory createThreadFactory(String threadName) {
return r -> {
Thread thread = new Thread(r);
thread.setName(threadName);
return thread;
};
}
public static boolean isIpv4(String ip)
{
return ipv4.matcher(ip).matches();