Compatible with 1.7.5

Still need to test this
This commit is contained in:
Shevchik 2014-03-23 02:01:33 +04:00
parent 1da2efc93d
commit 0f8306f0bb

View File

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