Even more debug

This commit is contained in:
AlexTheCoder 2016-07-21 16:16:38 -04:00
parent 4a77a587f8
commit 286a7aa32a

View File

@ -490,19 +490,22 @@ public class BasketballGame implements Listener
@EventHandler @EventHandler
public void onSwipe(EntityDamageByEntityEvent event) public void onSwipe(EntityDamageByEntityEvent event)
{ {
Bukkit.broadcastMessage("1");
if (_frozen) if (_frozen)
return; return;
Bukkit.broadcastMessage("2");
if (!(event.getEntity() instanceof Player) || !(event.getDamager() instanceof Player)) if (!(event.getEntity() instanceof Player) || !(event.getDamager() instanceof Player))
{ {
Bukkit.broadcastMessage("3");
return; return;
} }
Bukkit.broadcastMessage("4");
if (!_players.contains((Player)event.getEntity()) || !_players.contains((Player)event.getDamager())) if (!_players.contains((Player)event.getEntity()) || !_players.contains((Player)event.getDamager()))
{ {
Bukkit.broadcastMessage("5");
return; return;
} }
Bukkit.broadcastMessage("6");
Player player = (Player)event.getDamager(); Player player = (Player)event.getDamager();
Player target = (Player)event.getEntity(); Player target = (Player)event.getEntity();