Compatible with 1.7.5
Still need to test this
This commit is contained in:
parent
1da2efc93d
commit
0f8306f0bb
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user