diff options
author | Tyler Murphy <tylermurphy534@gmail.com> | 2021-08-23 13:57:50 -0400 |
---|---|---|
committer | Tyler Murphy <tylermurphy534@gmail.com> | 2021-08-23 13:57:50 -0400 |
commit | 93dd4cfcc4e89448eb69d00b9a55145121467aa5 (patch) | |
tree | e73e8ad0eb3bb61cd358c2f93c65d65188c2e49c /src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java | |
parent | severe give items bug fix (diff) | |
download | kenshinshideandseek-93dd4cfcc4e89448eb69d00b9a55145121467aa5.tar.gz kenshinshideandseek-93dd4cfcc4e89448eb69d00b9a55145121467aa5.tar.bz2 kenshinshideandseek-93dd4cfcc4e89448eb69d00b9a55145121467aa5.zip |
refactoring, command restructure, bug fixes, glow rewrite
Diffstat (limited to 'src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java')
-rw-r--r-- | src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java b/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java index 87abf49..1c31ccd 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/commands/Stop.java @@ -10,8 +10,8 @@ import org.bukkit.entity.Player; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; -import net.tylermurphy.hideAndSeek.ICommand; -import net.tylermurphy.hideAndSeek.manager.WorldborderManager; +import net.tylermurphy.hideAndSeek.util.Functions; +import net.tylermurphy.hideAndSeek.util.ICommand; public class Stop implements ICommand { @@ -43,8 +43,11 @@ public class Stop implements ICommand { player.removePotionEffect(effect.getType()); } player.addPotionEffect(new PotionEffect(PotionEffectType.HEAL, 1, 100)); + for(Player temp : playerList.values()) { + Functions.setGlow(player, temp, false); + } } - WorldborderManager.reset(); + Functions.resetWorldborder(); } public String getUsage() { |