Firework on Spawn

Discussion in 'Plugin Development' started by Unshakablefaith, Apr 23, 2014.

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

    Unshakablefaith

    I want to create a blue firework that appears when the player joins the server.
    What would the code be for this? Ive been working on it and nothing seems to work:/
    I want it to spawn where they are standing.

    Thanks
     
  2. Offline

    Garris0n

    What have you tried so far?
     
  3. Offline

    Unshakablefaith

    Can't even create the firework to be honest. Sorry I'm not very good yet:/
     
  4. Offline

    vortex25565

    Post your code, I have just started coding bukkit plugins and i made the exact same type of plugin.
     
  5. Offline

    BillyBobJoe168

    p.getWorld().spawnEntity(p.getLocation(), EntityType.FIREWORK);
     
  6. Offline

    Schaakmatth

    p.getWorld().spawnEntity(p.getLocation(), EntityType.FIREWORK);
     
  7. Offline

    Unshakablefaith

    That code works, but how would I make it RED or GREEN?
     
  8. Offline

    oscarshi1995

    Firework f = p.getWorld().spawnEntity(p.getLocation(), EntityType.FIREWORK);
    f.getGetFireworkMeta() = FireworkEffect.builder().withColor(Color.GREEN);
     
Thread Status:
Not open for further replies.

Share This Page