Add support for craftbukkit 1.7.10
This commit is contained in:
parent
9986bdbb0a
commit
1a0ea9bdba
@ -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_R4": {
|
||||||
|
nmsArrowClass = Class.forName(pkgname+"."+"nmsV17R4"+".NMSChairsArrow");
|
||||||
|
return;
|
||||||
|
}
|
||||||
case "v1_7_R3": {
|
case "v1_7_R3": {
|
||||||
nmsArrowClass = Class.forName(pkgname+"."+"nmsV17R3"+".NMSChairsArrow");
|
nmsArrowClass = Class.forName(pkgname+"."+"nmsV17R3"+".NMSChairsArrow");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user