This allows the arrow to despawn properly

This commit is contained in:
Shevchik 2013-12-19 00:20:12 +04:00
parent 75eeafb979
commit 841fee179b

View File

@ -56,7 +56,7 @@ public class Chairs extends JavaPlugin {
log = this.getLogger();
try {
World world = getServer().getWorlds().get(0);
Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0, 0), 0, 0);
Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0.1, 0), 0, 0);
String arrowclass = arrow.getClass().getName();
Method getHandle;
getHandle = arrow.getClass().getDeclaredMethod("getHandle");