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() {
log = this.getLogger();
try {
nmsaccess.setupVehicleArrow();
nmsaccess.setupChairsArrow();
} catch (Exception e) {
e.printStackTrace();
getServer().getPluginManager().disablePlugin(this);

View File

@ -12,7 +12,7 @@ public class NMSAccess {
private Class<?> nmsArrowClass;
public void setupVehicleArrow() throws NMSAccessException, ClassNotFoundException {
public void setupChairsArrow() throws NMSAccessException, ClassNotFoundException {
String pkgname = getClass().getPackage().getName();
String packageName = Bukkit.getServer().getClass().getPackage().getName();
String nmspackageversion = packageName.substring(packageName.lastIndexOf('.') + 1);