Home›Java›Mods›DeathEvents
DeathEvents
ModsJava

DeathEvents

Java mod listed for Minecraft 1.7–1.10. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
A simple plugin that creates a Hologram when a player dies.
Sorry for uploading a really simple plugin but I need 2 free resources to upload premium.

Commands:

None

Installation:
1: Add HolographicDisplays.jar and DeathEvents.jar to your server.
2: Reload or Restart the server.
3: Done

Requirements:
HolographicDisplays

Java 1.8 or higher
Spigot 1.8.x


TOS:

You can modify the plugin for your needs.
No Stupid reviews such as missing features.

Source Code:
Code (Text):
package me.ik4ku.deathevents;

import com.gmail.filoghost.holograms.api.HolographicDisplaysAPI;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.PlayerDeathEvent;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Calendar;

public class Main extends JavaPlugin implements Listener {

    public void onEnable() {
        Bukkit.getServer().getPluginManager().registerEvents(this, this);

        if (!Bukkit.getPluginManager().isPluginEnabled("HolographicDisplays")) {
            getLogger().severe("*** HolographicDisplays is not installed or not enabled. ***");
            getLogger().severe("*** This plugin will be disabled. ***");
            this.setEnabled(false);
            return;
        }
    }

    @EventHandler
    public void onPlayerDeath(PlayerDeathEvent e) {

        HolographicDisplaysAPI.createHologram(
                this,
                e.getEntity().getLocation().add(0, 2, 0),
                ChatColor.DARK_GRAY + "§l(" + ChatColor.DARK_RED + "§lx" + ChatColor.DARK_GRAY + "§l)" + ChatColor.RED + "§l" + e.getEntity().getName() + ChatColor.DARK_GRAY + "§l(" + ChatColor.DARK_RED + "§lx" + ChatColor.DARK_GRAY + "§l)");
    }
}

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

DeathEvents is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10. Downloaded 193 times (via Spigot). Download it and open it directly in the game.

Explore more