summaryrefslogtreewikicommitdiff
path: root/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java
diff options
context:
space:
mode:
authorTyler Murphy <tylermurphy534@gmail.com>2021-08-27 17:20:07 -0400
committerTyler Murphy <tylermurphy534@gmail.com>2021-08-27 17:20:07 -0400
commit0154a34f1dc240652908810314167a44638c847e (patch)
tree4f4e4a7dac2581ee8b32644cb30c3f852a1b8e8d /src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java
parent1.3.0 beta 2, bug fixes, added more block settings, added more config options (diff)
downloadkenshinshideandseek-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.java5
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();