Add support for craftbukkit 1.7.10

This commit is contained in:
Shevchik 2014-07-10 05:12:53 +04:00
parent 9986bdbb0a
commit 1a0ea9bdba

View File

@ -17,6 +17,10 @@ public class NMSAccess {
String packageName = Bukkit.getServer().getClass().getPackage().getName();
String nmspackageversion = packageName.substring(packageName.lastIndexOf('.') + 1);
switch (nmspackageversion) {
case "v1_7_R4": {
nmsArrowClass = Class.forName(pkgname+"."+"nmsV17R4"+".NMSChairsArrow");
return;
}
case "v1_7_R3": {
nmsArrowClass = Class.forName(pkgname+"."+"nmsV17R3"+".NMSChairsArrow");
return;