From 94afcb9c885bec53dd7d75bed7cda14579634b57 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Fri, 13 Aug 2021 22:10:46 -0400 Subject: [PATCH] always join as hider --- .../java/net/tylermurphy/hideAndSeek/manager/EventManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/manager/EventManager.java b/src/main/java/net/tylermurphy/hideAndSeek/manager/EventManager.java index fbce79c..99825f7 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/manager/EventManager.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/manager/EventManager.java @@ -25,6 +25,8 @@ public class EventManager implements Listener { event.getPlayer().removePotionEffect(effect.getType()); } event.getPlayer().teleport(new Location(event.getPlayer().getWorld(), spawnPosition.getX(),spawnPosition.getY(),spawnPosition.getZ())); + } else if(status.equals("Setup") || status.equals("Standby")) { + Hider.addEntry(event.getPlayer().getName()); } playerList.put(event.getPlayer().getName(), event.getPlayer()); if(board == null) BoardManager.loadScoreboard();