Converted emulated player class calls to use base class.

This commit is contained in:
KHobbits 2014-04-13 01:01:49 +01:00
parent e007331581
commit 36e580474f
61 changed files with 214 additions and 214 deletions

View file

@ -50,8 +50,8 @@ public class Commandfireball extends EssentialsCommand
type = LargeFireball.class;
}
}
final Vector direction = user.getEyeLocation().getDirection().multiply(speed);
projectile = (Projectile)user.getWorld().spawn(user.getEyeLocation().add(direction.getX(), direction.getY(), direction.getZ()), type);
final Vector direction = user.getBase().getEyeLocation().getDirection().multiply(speed);
projectile = (Projectile)user.getWorld().spawn(user.getBase().getEyeLocation().add(direction.getX(), direction.getY(), direction.getZ()), type);
projectile.setShooter(user.getBase());
projectile.setVelocity(direction);
}