@@ -0,0 +1,1094 @@
+package com.gabrielsimmer;%0A%0Aimport org.bukkit.Bukkit;%0Aimport org.bukkit.Location;%0Aimport org.bukkit.World;%0Aimport org.bukkit.entity.Player;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.Listener;%0Aimport org.bukkit.event.entity.PlayerDeathEvent;%0A%0Apublic class deathEvent implements Listener %7B%0A%0A%09nitroUHC plugin;%0A%09%0A%09public deathEvent(nitroUHC passedPlugin)%7B%0A%09%09this.plugin = passedPlugin;%0A%09%7D%0A%09%0A%09%0A%09@EventHandler%0A%09public void onPlayerDeath(PlayerDeathEvent event)%7B%0A%09%09%0A%09%09Player player = event.getEntity();%0A%09%09Player killer = player.getKiller();%0A%09%09World world = Bukkit.getWorld(%22world%22);%0A%0A%09%09event.setDeathMessage(player.getDisplayName() + %22 died!%22);%0A%09%09%0A%09%09int y = world.getHighestBlockYAt(0, 0);%0A%09%09player.teleport(new Location(world, 0, y, 0));%0A%0A%09%09plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() %7B%0A%0A%09%09%09public void run() %7B%0A%09%09%09%09try%7B%0A%09%09%09%09%09player.kickPlayer(killer.getDisplayName() + %22 killed you! Better luck next time...%22);%0A%09%09%09%09%7D%0A%09%09%09%09catch(NullPointerException e)%7B%0A%09%09%09%09%09player.kickPlayer(%22You died! Better luck next time...%22);%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D, 120L);%0A%09%7D%0A%0A%7D%0A

Create deathEvent.java