aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/PlayerListener.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-06 11:49:01 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-06 11:49:01 -0600
commitdb5c24bc26e4d6a34ecd1ab9118f0f098eee3581 (patch)
treebfd1fa99cab5e90c5cd3e4555dc06d0a82164fe1 /src/net/brysonsteck/PlayerListener.java
parenta6193c66185c069db9a8f9f7a7aca570ae55994b (diff)
downloadresurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar
resurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar.gz
resurrection-db5c24bc26e4d6a34ecd1ab9118f0f098eee3581.tar.bz2
death event works, working on commands
Diffstat (limited to 'src/net/brysonsteck/PlayerListener.java')
-rw-r--r--src/net/brysonsteck/PlayerListener.java19
1 files changed, 0 insertions, 19 deletions
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);
- }
-}