Import Parabot "API" & Rename Directory Names

This commit is contained in:
Dark98
2021-10-06 16:28:08 +01:00
parent ffc3bdd5a8
commit 82646880da
32 changed files with 2027 additions and 5 deletions
@@ -0,0 +1,15 @@
package org.parabot.api.misc;
/**
* @author JKetelaar
*/
public class JavaUtil {
public static double JAVA_VERSION = getVersion();
static double getVersion() {
String version = System.getProperty("java.version");
int pos = version.indexOf('.');
pos = version.indexOf('.', pos + 1);
return Double.parseDouble(version.substring(0, pos));
}
}