From c00c58dd0ea92bed63c25a5f2a34c13dbf86a7a5 Mon Sep 17 00:00:00 2001 From: ArcticZeroo Date: Sun, 5 Nov 2017 17:06:38 -0500 Subject: [PATCH] Add more debug to Build --- .../src/nautilus/game/arcade/game/games/build/Build.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/Build.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/Build.java index ae489d34e..7a3609073 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/Build.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/Build.java @@ -9,6 +9,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.UUID; +import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Effect; import org.bukkit.GameMode; @@ -595,6 +596,10 @@ public class Build extends Game for (Player player : _data.keySet()) { + if (Manager.isVanished(player)) { + continue; + } + double points = _data.get(player).getPoints(); if (bestPlayer == null || points > bestPoints) @@ -1748,6 +1753,8 @@ public class Build extends Game @Override public void disqualify(Player player) { + Bukkit.broadcastMessage("Disqualifying player " + player.getName()); + super.disqualify(player); // Remove the player from the map so players don't vote on it