From 2263e8ddfc5239997138a242fbbfbe38cad88870 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Wed, 21 Jul 2021 21:51:09 -0600 Subject: set spawn to spawn on respawn spawn spawn --- out/artifacts/Resurrection_jar/Resurrection.jar | Bin 1352839 -> 1352846 bytes .../Resurrection/player/PlayerListener.java | 1 + 2 files changed, 1 insertion(+) diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar index ae2767d..6751fbd 100644 Binary files a/out/artifacts/Resurrection_jar/Resurrection.jar and b/out/artifacts/Resurrection_jar/Resurrection.jar differ diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java index 2b1fc7a..7cc8618 100644 --- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java +++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java @@ -201,6 +201,7 @@ public class PlayerListener implements Listener { p.setGameMode(GameMode.SPECTATOR); p.sendMessage(ChatColor.RED + "" + ChatColor.BOLD + "YOU HAVE DIED!!"); p.sendMessage(ChatColor.RED + "You will be able to respawn in the next 24 hours."); + p.teleport(spawn); new BukkitRunnable() { @Override public void run() { -- cgit v1.2.3