Rename method
This commit is contained in:
parent
3254fd5cd0
commit
882a3db050
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user