Rename method

This commit is contained in:
Shevchik 2014-03-23 01:57:34 +04:00
parent 3254fd5cd0
commit 882a3db050
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ public class Chairs extends JavaPlugin {
public void onEnable() { public void onEnable() {
log = this.getLogger(); log = this.getLogger();
try { try {
nmsaccess.setupVehicleArrow(); nmsaccess.setupChairsArrow();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
getServer().getPluginManager().disablePlugin(this); getServer().getPluginManager().disablePlugin(this);

View File

@ -12,7 +12,7 @@ public class NMSAccess {
private Class<?> nmsArrowClass; private Class<?> nmsArrowClass;
public void setupVehicleArrow() throws NMSAccessException, ClassNotFoundException { public void setupChairsArrow() throws NMSAccessException, ClassNotFoundException {
String pkgname = getClass().getPackage().getName(); String pkgname = getClass().getPackage().getName();
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);