Fix Tag Master, show bouncing block full score
This commit is contained in:
parent
6cef42d7a4
commit
2e5d7c023f
@ -39,7 +39,6 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.potion.PotionEffect;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
import org.bukkit.scheduler.BukkitRunnable;
|
||||
import org.bukkit.scoreboard.Scoreboard;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
@ -72,7 +71,6 @@ import nautilus.game.arcade.ArcadeManager;
|
||||
import nautilus.game.arcade.GameType;
|
||||
import nautilus.game.arcade.events.GamePrepareCountdownCommence;
|
||||
import nautilus.game.arcade.events.GameStateChangeEvent;
|
||||
import nautilus.game.arcade.game.Game.GameState;
|
||||
import nautilus.game.arcade.game.GameTeam;
|
||||
import nautilus.game.arcade.game.TeamGame;
|
||||
import nautilus.game.arcade.game.games.mineware.challenge.Challenge;
|
||||
@ -123,7 +121,6 @@ import nautilus.game.arcade.game.games.mineware.tracker.SurfUpTracker;
|
||||
import nautilus.game.arcade.game.games.mineware.tracker.TagMasterTracker;
|
||||
import nautilus.game.arcade.game.games.mineware.tracker.VeteranTracker;
|
||||
import nautilus.game.arcade.kit.Kit;
|
||||
import nautilus.game.arcade.world.WorldData;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@ -465,6 +462,8 @@ public class BawkBawkBattles extends TeamGame implements IThrown
|
||||
{
|
||||
for (Player player : GetPlayers(false))
|
||||
{
|
||||
System.out.println("Resetting: " + player.getName());
|
||||
|
||||
if (_lives.get(player) > 0)
|
||||
{
|
||||
Manager.Clear(player);
|
||||
|
@ -177,7 +177,7 @@ public class ChallengeBouncingBlock extends Challenge implements LogicTracker
|
||||
if (event.getType() != UpdateType.TICK)
|
||||
return;
|
||||
|
||||
for (Player player : getPlayersIn(true))
|
||||
for (Player player : getPlayersIn(false))
|
||||
{
|
||||
UtilTextBottom.display(C.Bold + "Score: " + C.Reset + C.cYellow + C.Bold + _score.get(player), player);
|
||||
}
|
||||
|
@ -267,14 +267,7 @@ public class ChallengeReverseTag extends TeamChallenge implements LogicTracker
|
||||
|
||||
private void trackTag(Player player)
|
||||
{
|
||||
if (_tagTracker.containsKey(player))
|
||||
{
|
||||
if (_tagTracker.get(player))
|
||||
{
|
||||
_tagTracker.put(player, true);
|
||||
}
|
||||
}
|
||||
else
|
||||
if (!_tagTracker.containsKey(player))
|
||||
{
|
||||
_tagTracker.put(player, true);
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ public class TagMasterTracker extends ChallengeStatTracker
|
||||
{
|
||||
ChallengeReverseTag reverseTag = (ChallengeReverseTag) challenge;
|
||||
|
||||
for (Player player : reverseTag.getFirstTeam().getPlayers())
|
||||
for (Player player : getGame().GetPlayers(false))
|
||||
{
|
||||
if (reverseTag.hasData(player))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user