Add support for 1.7.8

This commit is contained in:
Shevchik 2014-04-12 20:16:45 +04:00
parent bb0d355fd2
commit 5ec264723e
2 changed files with 5 additions and 1 deletions

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_R3": {
nmsArrowClass = Class.forName(pkgname+"."+"nms178"+".NMSChairsArrow");
return;
}
case "v1_7_R2": { case "v1_7_R2": {
nmsArrowClass = Class.forName(pkgname+"."+"nms175"+".NMSChairsArrow"); nmsArrowClass = Class.forName(pkgname+"."+"nms175"+".NMSChairsArrow");
return; return;

View File

@ -1,5 +1,5 @@
name: Chairs name: Chairs
version: 4.0 version: 4.1
description: Let players sit on blocks. description: Let players sit on blocks.
website: http://dev.bukkit.org/bukkit-plugins/chairsreloaded/ website: http://dev.bukkit.org/bukkit-plugins/chairsreloaded/
authors: authors: