From 0154a34f1dc240652908810314167a44638c847e Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Fri, 27 Aug 2021 17:20:07 -0400 Subject: add world rollback and other stuff --- src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java') diff --git a/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java b/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java index e55675e..b709120 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java @@ -12,6 +12,7 @@ import org.bukkit.potion.PotionEffectType; import net.tylermurphy.hideAndSeek.util.Functions; import net.tylermurphy.hideAndSeek.util.ICommand; +import net.tylermurphy.hideAndSeek.util.Packet; public class Stop implements ICommand { @@ -31,7 +32,7 @@ public class Stop implements ICommand { } public static void onStop() { - if(status.equals("Standby") || status.equals("Setup")) return; + if(status.equals("Standby")) return; status = "Standby"; gameId++; for(Player player : playerList.values()) { @@ -44,7 +45,7 @@ public class Stop implements ICommand { } player.addPotionEffect(new PotionEffect(PotionEffectType.HEAL, 1, 100)); for(Player temp : playerList.values()) { - Functions.setGlow(player, temp, false); + Packet.setGlow(player, temp, false); } } Functions.resetWorldborder(); -- cgit v1.2.3-freya