diff --git a/src/main/java/dev/tylerm/khs/configuration/Config.java b/src/main/java/dev/tylerm/khs/configuration/Config.java index ff7f986..0e46be7 100644 --- a/src/main/java/dev/tylerm/khs/configuration/Config.java +++ b/src/main/java/dev/tylerm/khs/configuration/Config.java @@ -91,7 +91,6 @@ public class Config { startingSeekerCount, delayedRespawnDelay, hidingTimer, - whenToHighlight, endGameDelay; public static float @@ -153,7 +152,6 @@ public static void loadConfig() { tauntCountdown = config.getBoolean("taunt.showCountdown"); tauntDelay = Math.max(60, config.getInt("taunt.delay")); tauntLast = config.getBoolean("taunt.whenLastPerson"); - whenToHighlight = config.getInt("whenToHighlight"); //Glow blindnessWhenHit = config.getInt("blindnessWhenHit"); diff --git a/src/main/java/dev/tylerm/khs/game/Game.java b/src/main/java/dev/tylerm/khs/game/Game.java index dc70aff..8541eb4 100644 --- a/src/main/java/dev/tylerm/khs/game/Game.java +++ b/src/main/java/dev/tylerm/khs/game/Game.java @@ -34,6 +34,7 @@ import dev.tylerm.khs.game.util.WinType; import org.bukkit.*; import org.bukkit.entity.Entity; +import org.bukkit.entity.LivingEntity; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; @@ -339,17 +340,7 @@ private void whilePlaying() { if (gameTick % 20 == 0) { if (gameLength > 0) { board.reloadGameBoards(); - if (gameTimer-- < whenToHighlight * 20) { - for (Player seeker : board.getSeekers()) { - for (Entity nearbyEntity : seeker.getNearbyEntities(2, 2, 2)) { - if(nearbyEntity instanceof Player player){ - if(board.isHider(player)){ - player.addPotionEffect(new PotionEffect(PotionEffectType.GLOWING, 20, 1)); - } - } - } - } - } + gameTimer--; } if (currentMap.isWorldBorderEnabled()) currentMap.getWorldBorder().update(); if (tauntEnabled) taunt.update(); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index e1a9a86..760d4e9 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -15,9 +15,6 @@ spawnPatch: false # default: 300 aka 5min gameLength: 300 -# The last seconds in the game we'll highlight hiders around seekers. -whenToHighlight: 10 - # How long will be added into the timer when a seeker is found extendPerKill: 30