From 5ec264723e1598971a81f25433e332eddd2c4eef Mon Sep 17 00:00:00 2001 From: Shevchik Date: Sat, 12 Apr 2014 20:16:45 +0400 Subject: [PATCH] Add support for 1.7.8 --- src/com/cnaude/chairs/vehiclearrow/NMSAccess.java | 4 ++++ src/plugin.yml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java b/src/com/cnaude/chairs/vehiclearrow/NMSAccess.java index b9b9789..e50f843 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_R3": { + nmsArrowClass = Class.forName(pkgname+"."+"nms178"+".NMSChairsArrow"); + return; + } case "v1_7_R2": { nmsArrowClass = Class.forName(pkgname+"."+"nms175"+".NMSChairsArrow"); return; diff --git a/src/plugin.yml b/src/plugin.yml index b32dca0..dad1cc7 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,5 +1,5 @@ name: Chairs -version: 4.0 +version: 4.1 description: Let players sit on blocks. website: http://dev.bukkit.org/bukkit-plugins/chairsreloaded/ authors: