Hopefully the last 1.5 commit. Just needs testing.

This commit is contained in:
Richard
2016-02-20 03:50:47 -02:00
parent a9467540f4
commit 042aaa6ceb
8 changed files with 255 additions and 94 deletions

View File

@@ -7,7 +7,7 @@ import org.bukkit.Bukkit;
public class ReflectionUtils {
public static Class<?> getNMSClass(String classString, boolean isArray) {
String version = Bukkit.getServer().getClass().getPackage().getName().split("\\.")[3] + ".";
String version = getVersion();
String name = "net.minecraft.server." + version + classString;
if (isArray)
name = "[L" + name + ";";