From db5c24bc26e4d6a34ecd1ab9118f0f098eee3581 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 6 Jun 2021 11:49:01 -0600 Subject: death event works, working on commands --- src/net/brysonsteck/PlayerListener.java | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 src/net/brysonsteck/PlayerListener.java (limited to 'src/net/brysonsteck/PlayerListener.java') diff --git a/src/net/brysonsteck/PlayerListener.java b/src/net/brysonsteck/PlayerListener.java deleted file mode 100644 index a586d31..0000000 --- a/src/net/brysonsteck/PlayerListener.java +++ /dev/null @@ -1,19 +0,0 @@ -package net.brysonsteck; - -import org.bukkit.entity.Player; -import org.bukkit.event.EventHandler; -import org.bukkit.event.Listener; -import org.bukkit.event.entity.PlayerDeathEvent; -import org.bukkit.plugin.java.JavaPlugin; - -public class PlayerListener implements Listener { - @EventHandler - public void onDeath(PlayerDeathEvent e) { - System.out.println("Resurrection: A player has died!"); - Player p = e.getEntity(); - Long timeOfDeath = System.currentTimeMillis(); - Long resurrectionTime = timeOfDeath + 86400000; - - p.sendMessage("You have died at " + timeOfDeath + ". You will respawn at " + resurrectionTime); - } -} -- cgit v1.2.3