diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2021-08-27 17:20:07 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2021-08-27 17:20:07 -0400 |
commit | 0154a34f1dc240652908810314167a44638c847e (patch) | |
tree | 4f4e4a7dac2581ee8b32644cb30c3f852a1b8e8d /src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java | |
parent | 1.3.0 beta 2, bug fixes, added more block settings, added more config options (diff) | |
download | kenshinshideandseek-0154a34f1dc240652908810314167a44638c847e.tar.gz kenshinshideandseek-0154a34f1dc240652908810314167a44638c847e.tar.bz2 kenshinshideandseek-0154a34f1dc240652908810314167a44638c847e.zip |
add world rollback and other stuff
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java | 5 |
1 files changed, 3 insertions, 2 deletions
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(); |