diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar index 2e7d7ca..48b3b72 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 40a5c18..aac069e 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 a12ec52..fe8f2b7 100644 --- a/src/net/brysonsteck/Resurrection/PlayerListener.java +++ b/src/net/brysonsteck/Resurrection/PlayerListener.java @@ -19,6 +19,7 @@ public class PlayerListener implements Listener { public void onDeath(PlayerDeathEvent e) { System.out.println("Resurrection: A player has died!"); Player p = e.getEntity(); + p.spigot().respawn(); p.setGameMode(GameMode.SPECTATOR); p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW,1000000000, 500)); p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 1000000000, 500));