Mineuniverse
Log in Register
Plugins

Death Firework

Launches a firework at any players death location.
by _ForgeUser11527844
Download Claim this project
3,834 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Fun Mechanics

This plugin launches a Red Firework wherever any player dies. (I made this to make it easier to tell when you had killed somebody in the Survival Games.)

**EDIT**

I probably won't bother with changing anything else on this plugin. It as of now fulfills the goal I originally designed it to do. I welcome any Bukkit coders to have at it if they think they can improve this plugin. You are free to use the source code of this plugin in anything you want to without needing to credit me in any way. I hope this can help somebody out!

Plugin Source Code: (This was coded for 1.7.2, so it may need a bit of updating for newer versions of Bukkit.)
_________________________________________________________________________________________________________________________
import org.bukkit.Bukkit;
import org.bukkit.Color;
import org.bukkit.FireworkEffect;
import org.bukkit.FireworkEffect.Type;
import org.bukkit.entity.Firework;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.inventory.meta.FireworkMeta;
import org.bukkit.plugin.java.JavaPlugin;

public class Main extends JavaPlugin implements Listener {

    public void onEnable() {
        Bukkit.getServer().getPluginManager().registerEvents(this, this);
        getConfig().options().copyDefaults(true);
        saveConfig();
    }

    @EventHandler
    public void onEntityDeath(final PlayerDeathEvent e) {
    if (e.getEntity() instanceof Player)
        if(this.getConfig().getBoolean("Firework-air-launch")) {
        Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
            public void run() {
                Firework f = (Firework) e.getEntity().getWorld().spawn(e.getEntity().getLocation(), Firework.class);

                FireworkMeta fm = f.getFireworkMeta();
                fm.addEffect(FireworkEffect.builder()
                        .flicker(true)
                        .trail(true)
                        .with(Type.BALL_LARGE)
                        .withColor(Color.RED)
                        .withFade(Color.RED)
                        .build());
                fm.setPower(0);
                f.setFireworkMeta(fm);
            }
        }, 20);}
        else
            Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
                public void run() {
                    Firework f = (Firework) e.getEntity().getWorld().spawn(e.getEntity().getLocation(), Firework.class);

                    FireworkMeta fm = f.getFireworkMeta();
                    fm.addEffect(FireworkEffect.builder()
                            .flicker(true)
                            .trail(true)
                            .with(Type.BALL_LARGE)
                            .withColor(Color.RED)
                            .withFade(Color.RED)
                            .build());
                    fm.setPower(0);
                    f.setFireworkMeta(fm);
                    f.detonate();
                }
            }, 20);
    }
}
_____________________
**Config.yml contents**
version: 1.0
Firework-air-launch: true
_____________________

DeathFirework 1.2
MC CB 1.7.2-R0.3
Release 2014-03-21 Get
DeathFirework 1.1
MC 1.7.4
Release 2014-01-11 Get
DeathFirework 1.0
MC 1.7.4
Release 2013-12-15 Get

You Might Also Like

BattleTracker 2.0
A standalone plugin and companion to BattleArena that tracks PVP & PVE statistics along with a suite of additional combat features to enhance server gameplay.
9,997
eHunger Games (Mcpvp hg)
A hunger games plugin like mcpvp
9,985
Basic Trails
Basic Trails Plugin
9,974
HypixelFirework
HypixelFirework
9,956
PremiumBoots [Like GommeHD]
PremiumBoots [Like GommeHD]
9,949
llamaGrapple
A customizable grapple hook!
9,925