Solved Shooting fireball with player direction

Discussion in 'Plugin Development' started by ItsMas_, Feb 1, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    ItsMas_

    I am making a plugin which includes different types of "spells", and one of which is shooting a fireball.

    I am completely stuck on how to summon a fireball with the veolcity of where a player is facing. I have looked a several tutorials on the bukkit forums but none seem to work.

    Any help? Thanks :)
     
  2. Offline

    JTGaming2012

    Easy solution :D

    Code:
    player.launchProjectile(Fireball.class);
    That would launch the fireball in the direction the player is currently facing
     
  3. Offline

    ItsMas_

    Eclipse is giving me the following error:
    Code:
    Bound mismatch: The generic method launchProjectile(Class<? extends T>) of type ProjectileSource is not applicable for the arguments (Class<Fireball>). The inferred type Fireball is not a valid substitute for the bounded parameter <T extends Projectile>
     
Thread Status:
Not open for further replies.

Share This Page