@EventHandler public void onBlockFromTo(BlockFromToEvent event) { Block to = event.getToBlock(); int y = to.getY(); int x = to.getX(); if (to.getType() == Material.LAVA || to.getType() == Material.STATIONARY_LAVA ) { if (x > 0 && y < 76){ Bukkit.getServer().broadcastMessage("Red Team Has Won!"); } else if (x < 0 && y < 76){ Bukkit.getServer().broadcastMessage("Blue Team Has Won!"); } } }