From 1a0ea9bdba6d8ac0ff28e62610ee513837e3d2da Mon Sep 17 00:00:00 2001 From: Shevchik Date: Thu, 10 Jul 2014 05:12:53 +0400 Subject: [PATCH] Add support for craftbukkit 1.7.10 --- src/com/cnaude/chairs/vehiclearrow/NMSAccess.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java b/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java index 77abe86..ed408ad 100644 --- a/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java +++ b/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java @@ -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;