From 6d718d762735cbdd46a17c527712176fccd2a7da Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 6 Jun 2021 10:54:49 -0600 Subject: seeing if playerlistener class is working properly --- src/net/brysonsteck/PlayerListener.java | 1 + src/net/brysonsteck/Resurrection.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/brysonsteck/PlayerListener.java b/src/net/brysonsteck/PlayerListener.java index 8a57624..c9a175c 100644 --- a/src/net/brysonsteck/PlayerListener.java +++ b/src/net/brysonsteck/PlayerListener.java @@ -8,6 +8,7 @@ import org.bukkit.event.entity.PlayerDeathEvent; 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; diff --git a/src/net/brysonsteck/Resurrection.java b/src/net/brysonsteck/Resurrection.java index 74fc8af..25008b8 100644 --- a/src/net/brysonsteck/Resurrection.java +++ b/src/net/brysonsteck/Resurrection.java @@ -19,7 +19,8 @@ public class Resurrection extends JavaPlugin { @Override public void onEnable() { super.onEnable(); - System.out.println("I'm alive!"); + System.out.println("Resurrection: I'm alive!"); + PlayerListener playerListener = new PlayerListener(); } // end of spigot things -- cgit v1.2.3