Cleaned up somethings (lib's request)

This commit is contained in:
Mysticate 2015-07-20 10:18:50 -04:00
parent bb769aa0f4
commit 63df369700
4 changed files with 12 additions and 15 deletions

View File

@ -6,7 +6,6 @@ import java.util.HashSet;
import java.util.Iterator;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
import mineplex.core.common.util.MapUtil;
import mineplex.core.common.util.NautHashMap;
import mineplex.core.common.util.UtilAction;
@ -25,7 +24,6 @@ import mineplex.core.common.util.UtilTextMiddle;
import mineplex.core.common.util.UtilTime;
import mineplex.core.common.util.UtilTime.TimeUnit;
import mineplex.core.explosion.ExplosionEvent;
import mineplex.core.itemstack.ItemStackFactory;
import mineplex.core.loot.ChestLoot;
import mineplex.core.loot.RandomItem;
import mineplex.core.updater.UpdateType;
@ -43,8 +41,8 @@ import nautilus.game.arcade.game.games.skywars.data.TNTGenerator;
import nautilus.game.arcade.game.games.skywars.events.PlayerKillZombieEvent;
import nautilus.game.arcade.game.games.skywars.kits.KitChicken;
import nautilus.game.arcade.game.games.skywars.kits.KitDestructor;
import nautilus.game.arcade.game.games.skywars.kits.KitMiner;
import nautilus.game.arcade.game.games.skywars.kits.KitMadScientist;
import nautilus.game.arcade.game.games.skywars.kits.KitMiner;
import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.ore.OreHider;
import nautilus.game.arcade.stats.DeathBomberStatTracker;
@ -67,7 +65,6 @@ import org.bukkit.entity.Chicken;
import org.bukkit.entity.Egg;
import org.bukkit.entity.EnderPearl;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Item;
import org.bukkit.entity.LivingEntity;
import org.bukkit.entity.Player;
import org.bukkit.entity.Projectile;

View File

@ -15,7 +15,7 @@ import org.bukkit.event.EventPriority;
public class WinWithoutDyingStatTracker extends StatTracker<Game>
{
private final Set<Player> _hasDied = new HashSet<Player>();
private final Set<String> _hasDied = new HashSet<String>();
private final String _stat;
public WinWithoutDyingStatTracker(Game game, String stat)
@ -42,7 +42,7 @@ public class WinWithoutDyingStatTracker extends StatTracker<Game>
{
return;
}
_hasDied.add(player);
_hasDied.add(player.getUniqueId().toString());
}
@EventHandler(priority = EventPriority.MONITOR)
@ -56,7 +56,7 @@ public class WinWithoutDyingStatTracker extends StatTracker<Game>
{
for (Player winner : winners)
{
if (!_hasDied.contains(winner))
if (!_hasDied.contains(winner.getUniqueId().toString()))
{
addStat(winner, _stat, 1, true, false);
}

View File

@ -18,7 +18,7 @@ import org.bukkit.event.player.PlayerInteractEvent;
public class WinWithoutOpeningChestStatTracker extends StatTracker<Game>
{
private final Set<Player> _openChest = new HashSet<Player>();
private final Set<String> _openChest = new HashSet<String>();
public WinWithoutOpeningChestStatTracker(Game game)
{
@ -37,7 +37,7 @@ public class WinWithoutOpeningChestStatTracker extends StatTracker<Game>
{
if (event.getClickedBlock() != null && event.getClickedBlock().getType() == Material.CHEST)
{
_openChest.add(event.getPlayer());
_openChest.add(event.getPlayer().getUniqueId().toString());
}
}
}
@ -47,7 +47,7 @@ public class WinWithoutOpeningChestStatTracker extends StatTracker<Game>
{
if (event.getBlock().getType() == Material.CHEST)
{
_openChest.add(event.getPlayer());
_openChest.add(event.getPlayer().getUniqueId().toString());
}
}
@ -62,7 +62,7 @@ public class WinWithoutOpeningChestStatTracker extends StatTracker<Game>
{
for (Player winner : winners)
{
if (!_openChest.contains(winner))
if (!_openChest.contains(winner.getUniqueId().toString()))
{
addStat(winner, "NoChest", 1, true, false);
}

View File

@ -17,7 +17,7 @@ import org.bukkit.inventory.ItemStack;
public class WinWithoutWearingArmorStatTracker extends StatTracker<Game>
{
private final Set<Player> _wearing = new HashSet<Player>();
private final Set<String> _wearing = new HashSet<String>();
public WinWithoutWearingArmorStatTracker(Game game)
{
@ -34,7 +34,7 @@ public class WinWithoutWearingArmorStatTracker extends StatTracker<Game>
{
for (Player player : getGame().GetPlayers(true))
{
if (_wearing.contains(player))
if (_wearing.contains(player.getUniqueId().toString()))
{
continue;
}
@ -43,7 +43,7 @@ public class WinWithoutWearingArmorStatTracker extends StatTracker<Game>
{
if (armor != null && armor.getType() != Material.AIR)
{
_wearing.add(player);
_wearing.add(player.getUniqueId().toString());
break;
}
}
@ -62,7 +62,7 @@ public class WinWithoutWearingArmorStatTracker extends StatTracker<Game>
{
for (Player winner : winners)
{
if (!_wearing.contains(winner))
if (!_wearing.contains(winner.getUniqueId().toString()))
{
addStat(winner, "NoArmor", 1, true, false);
}