diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-06-06 11:49:01 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-06-06 11:49:01 -0600 |
commit | db5c24bc26e4d6a34ecd1ab9118f0f098eee3581 (patch) | |
tree | bfd1fa99cab5e90c5cd3e4555dc06d0a82164fe1 /src/net/brysonsteck/PlayerListener.java | |
parent | a6193c66185c069db9a8f9f7a7aca570ae55994b (diff) | |
download | resurrection-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.java | 19 |
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); - } -} |