From 80b00aca964cb6943dbe138a4e2c5c106e14a6f6 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 6 Jun 2021 12:44:23 -0600 Subject: is the respawn listener working? --- out/artifacts/Resurrection_jar/Resurrection.jar | Bin 1334014 -> 1334035 bytes .../brysonsteck/Resurrection/PlayerListener.class | Bin 2450 -> 2486 bytes .../brysonsteck/Resurrection/PlayerListener.java | 1 + 3 files changed, 1 insertion(+) diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar index d78d524..0d15ce2 100644 Binary files a/out/artifacts/Resurrection_jar/Resurrection.jar and b/out/artifacts/Resurrection_jar/Resurrection.jar differ diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class index afd2680..29bf8ec 100644 Binary files a/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class and b/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class differ diff --git a/src/net/brysonsteck/Resurrection/PlayerListener.java b/src/net/brysonsteck/Resurrection/PlayerListener.java index 46e909a..7eb8892 100644 --- a/src/net/brysonsteck/Resurrection/PlayerListener.java +++ b/src/net/brysonsteck/Resurrection/PlayerListener.java @@ -37,6 +37,7 @@ public class PlayerListener implements Listener { @EventHandler public void onPlayerRespawn(PlayerRespawnEvent e) { Player p = e.getPlayer(); + p.sendMessage("You have respawned"); p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW,1000000000, 500)); p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 1000000000, 500)); } -- cgit v1.2.3