Wrong place

This commit is contained in:
Shevchik 2013-12-19 00:21:19 +04:00
parent 841fee179b
commit 972fd73e37

View File

@ -56,7 +56,7 @@ public class Chairs extends JavaPlugin {
log = this.getLogger(); log = this.getLogger();
try { try {
World world = getServer().getWorlds().get(0); World world = getServer().getWorlds().get(0);
Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0.1, 0), 0, 0); Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0, 0), 0, 0);
String arrowclass = arrow.getClass().getName(); String arrowclass = arrow.getClass().getName();
Method getHandle; Method getHandle;
getHandle = arrow.getClass().getDeclaredMethod("getHandle"); getHandle = arrow.getClass().getDeclaredMethod("getHandle");
@ -64,6 +64,7 @@ public class Chairs extends JavaPlugin {
Class<?> entityarrow = getHandle.invoke(arrow).getClass(); Class<?> entityarrow = getHandle.invoke(arrow).getClass();
Class<?> craftserver = getServer().getClass(); Class<?> craftserver = getServer().getClass();
vehiclearrowclass = new GenVehicleArrowClass(this).genAndLoadClass(arrowclass, entityarrow, craftserver); vehiclearrowclass = new GenVehicleArrowClass(this).genAndLoadClass(arrowclass, entityarrow, craftserver);
arrow.remove();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
log.severe("Failed to generate VehicleArrow class, exiting"); log.severe("Failed to generate VehicleArrow class, exiting");