Even more debug
This commit is contained in:
parent
4a77a587f8
commit
286a7aa32a
@ -490,19 +490,22 @@ public class BasketballGame implements Listener
|
||||
@EventHandler
|
||||
public void onSwipe(EntityDamageByEntityEvent event)
|
||||
{
|
||||
Bukkit.broadcastMessage("1");
|
||||
if (_frozen)
|
||||
return;
|
||||
|
||||
Bukkit.broadcastMessage("2");
|
||||
if (!(event.getEntity() instanceof Player) || !(event.getDamager() instanceof Player))
|
||||
{
|
||||
Bukkit.broadcastMessage("3");
|
||||
return;
|
||||
}
|
||||
|
||||
Bukkit.broadcastMessage("4");
|
||||
if (!_players.contains((Player)event.getEntity()) || !_players.contains((Player)event.getDamager()))
|
||||
{
|
||||
Bukkit.broadcastMessage("5");
|
||||
return;
|
||||
}
|
||||
|
||||
Bukkit.broadcastMessage("6");
|
||||
Player player = (Player)event.getDamager();
|
||||
Player target = (Player)event.getEntity();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user